diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-03-29 04:36:09 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-03-29 04:36:09 (GMT) |
commit | a19a168cccbc61b2a002475dd3b966b50983003e (patch) | |
tree | b1cd5ae6e193619ac8fecc99652813304a4873f0 /Lib/zipfile.py | |
parent | 301ab7f2d0ae11087512ef3a36beaf4edc3efa0a (diff) | |
download | cpython-a19a168cccbc61b2a002475dd3b966b50983003e.zip cpython-a19a168cccbc61b2a002475dd3b966b50983003e.tar.gz cpython-a19a168cccbc61b2a002475dd3b966b50983003e.tar.bz2 |
Whitespace normalization.
Diffstat (limited to 'Lib/zipfile.py')
-rw-r--r-- | Lib/zipfile.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/zipfile.py b/Lib/zipfile.py index bf59043..b638592 100644 --- a/Lib/zipfile.py +++ b/Lib/zipfile.py @@ -131,10 +131,10 @@ class ZipInfo: class ZipFile: - """ Class with methods to open, read, write, close, list zip files. - + """ Class with methods to open, read, write, close, list zip files. + z = ZipFile(file, mode="r", compression=ZIP_STORED) - + file: Either the path to the file, or a file-like object. If it is a path, the file will be opened and closed by ZipFile. mode: The mode can be either read "r", write "w" or append "a". @@ -158,7 +158,7 @@ class ZipFile: self.filelist = [] # List of ZipInfo instances for archive self.compression = compression # Method of compression self.mode = key = mode[0] - + # Check if we were passed a file-like object if type(file) in _STRING_TYPES: self._filePassed = 0 @@ -169,7 +169,7 @@ class ZipFile: self._filePassed = 1 self.fp = file self.filename = getattr(file, 'name', None) - + if key == 'r': self._GetContents() elif key == 'w': |