diff options
author | Raymond Hettinger <python@rcn.com> | 2005-02-16 09:30:17 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2005-02-16 09:30:17 (GMT) |
commit | 62f48abab3aac26a60486b737535f513cb3e08bf (patch) | |
tree | f6beaff61996a74555cd233b1cbce727aa888cbe | |
parent | 150d61d37ee7f6b0103a40e59d5473fec9a5eddf (diff) | |
download | cpython-62f48abab3aac26a60486b737535f513cb3e08bf.zip cpython-62f48abab3aac26a60486b737535f513cb3e08bf.tar.gz cpython-62f48abab3aac26a60486b737535f513cb3e08bf.tar.bz2 |
Remove dependency on order of mode flags
-rw-r--r-- | Lib/zipfile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/zipfile.py b/Lib/zipfile.py index 958ee9e..93436cf 100644 --- a/Lib/zipfile.py +++ b/Lib/zipfile.py @@ -193,7 +193,7 @@ class ZipFile: self.NameToInfo = {} # Find file info given name self.filelist = [] # List of ZipInfo instances for archive self.compression = compression # Method of compression - self.mode = key = mode[0].replace('b', '') + self.mode = key = mode.replace('b', '')[0] # Check if we were passed a file-like object if isinstance(file, basestring): |