summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-04-14 16:17:00 +0000
committerGuido van Rossum <guido@python.org>2001-04-14 16:17:00 +0000
commit6ccf35ada32b8e013805e0ac61516a522e690637 (patch)
tree595c43ecd7977c98b8c793b04108efa3eafca2f4
parentd7a0f314ad370272a86099d93403b0d3e47535ee (diff)
downloadcpython-6ccf35ada32b8e013805e0ac61516a522e690637.tar.gz
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".
-rw-r--r--Lib/distutils/archive_util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/archive_util.py b/Lib/distutils/archive_util.py
index 61bc25ea0f..4c5641b951 100644
--- a/Lib/distutils/archive_util.py
+++ b/Lib/distutils/archive_util.py
@@ -100,7 +100,7 @@ def make_zipfile (base_name, base_dir, verbose=0, dry_run=0):
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)