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

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Sat Nov 6 01:32:09 CET 2004


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

Modified Files:
	zipfile.py 
Log Message:
Don't choke on modes like rb or wb.

Index: zipfile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/zipfile.py,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- zipfile.py	10 Jul 2004 19:09:20 -0000	1.33
+++ zipfile.py	6 Nov 2004 00:31:51 -0000	1.34
@@ -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]
+        self.mode = key = mode[0].replace('b', '')
 
         # Check if we were passed a file-like object
         if isinstance(file, basestring):



More information about the Python-checkins mailing list