summaryrefslogtreecommitdiffstats
path: root/Lib/zipfile.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2005-02-16 09:27:49 (GMT)
committerRaymond Hettinger <python@rcn.com>2005-02-16 09:27:49 (GMT)
commit2ca7c190b61b891ef35a5eb7342b423055bb9082 (patch)
tree5c489340f010423298fe47dcc49f699d76bdf710 /Lib/zipfile.py
parent46d9623875893be9e2bcbb804b82cfd7f8ed05df (diff)
downloadcpython-2ca7c190b61b891ef35a5eb7342b423055bb9082.zip
cpython-2ca7c190b61b891ef35a5eb7342b423055bb9082.tar.gz
cpython-2ca7c190b61b891ef35a5eb7342b423055bb9082.tar.bz2
Remove dependency on order of mode flags
Diffstat (limited to 'Lib/zipfile.py')
-rw-r--r--Lib/zipfile.py2
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):