[Python-checkins] CVS: python/dist/src/Lib/distutils archive_util.py,1.9,1.10
Guido van Rossum
gvanrossum@users.sourceforge.net
Sat, 14 Apr 2001 09:17:03 -0700
Update of /cvsroot/python/python/dist/src/Lib/distutils
In directory usw-pr-cvs1:/tmp/cvs-serv30505
Modified Files:
archive_util.py
Log Message:
Pete Shinners discovered that zipfile.ZipFile() is called with mode
argument "wb", while the only valid modes are "r", "w" or "a". Fix
this by changing the mode to "w".
Index: archive_util.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/archive_util.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** archive_util.py 2000/09/26 02:13:49 1.9
--- archive_util.py 2001/04/14 16:17:00 1.10
***************
*** 101,105 ****
if not dry_run:
! z = zipfile.ZipFile(zip_filename, "wb",
compression=zipfile.ZIP_DEFLATED)
--- 101,105 ----
if not dry_run:
! z = zipfile.ZipFile(zip_filename, "w",
compression=zipfile.ZIP_DEFLATED)