[Python-checkins] python/dist/src/Lib zipfile.py,1.34,1.35

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Wed Feb 16 10:27:52 CET 2005


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31564

Modified Files:
	zipfile.py 
Log Message:
Remove dependency on order of mode flags

Index: zipfile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/zipfile.py,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- zipfile.py	6 Nov 2004 00:31:51 -0000	1.34
+++ zipfile.py	16 Feb 2005 09:27:49 -0000	1.35
@@ -193,7 +193,7 @@
         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):



More information about the Python-checkins mailing list