Commits

Anonymous committed 81823cf

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".

Comments (0)

Files changed (1)

Lib/distutils/archive_util.py

                     z.write(path, path)
 
         if not dry_run:
-            z = zipfile.ZipFile(zip_filename, "wb",
+            z = zipfile.ZipFile(zip_filename, "w",
                                 compression=zipfile.ZIP_DEFLATED)
 
             os.path.walk(base_dir, visit, z)