Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
sandes committed Mar 24, 2020
1 parent 76202ca commit dc0f71a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zipfly/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def _get_compressor(compress_type):
class PointerIO(object):
def __init__(self, mode='wb'):
if mode not in ('wb', ):
raise RuntimeError('zipstream.ZipFile() requires mode "wb"')
raise RuntimeError('zipfly.ZipFile() requires mode "wb"')
self.data_pointer = 0
self.__mode = mode
self.__closed = False
Expand Down Expand Up @@ -168,7 +168,7 @@ class ZipFile(zipfile.ZipFile):
def __init__(self, fileobj=None, mode='w', compression=ZIP_STORED, allowZip64=False):
"""Open the ZIP file with mode write "w"."""
if mode not in ('w', ):
raise RuntimeError('zipstream.ZipFile() requires mode "w"')
raise RuntimeError('zipfly.ZipFile() requires mode "w"')
if fileobj is None:
fileobj = PointerIO()

Expand Down

0 comments on commit dc0f71a

Please sign in to comment.