Kaydet (Commit) b61914dd authored tarafından Guido van Rossum's avatar Guido van Rossum

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".
üst 3c1858a5
...@@ -100,7 +100,7 @@ def make_zipfile (base_name, base_dir, verbose=0, dry_run=0): ...@@ -100,7 +100,7 @@ def make_zipfile (base_name, base_dir, verbose=0, dry_run=0):
z.write(path, path) z.write(path, path)
if not dry_run: if not dry_run:
z = zipfile.ZipFile(zip_filename, "wb", z = zipfile.ZipFile(zip_filename, "w",
compression=zipfile.ZIP_DEFLATED) compression=zipfile.ZIP_DEFLATED)
os.path.walk(base_dir, visit, z) os.path.walk(base_dir, visit, z)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment