Fix write mode for ZipFiles ('wb' is invalid!)

pull/18777/head
Ben Doherty 9 years ago committed by Matt Clay
parent 3465375e42
commit 409f67584e

@ -175,7 +175,7 @@ def main():
successes.append(path) successes.append(path)
elif compression == 'zip': elif compression == 'zip':
archive = zipfile.ZipFile(creates, 'wb') archive = zipfile.ZipFile(creates, 'w')
for path in archive_paths: for path in archive_paths:
archive.write(path, path[len(arcroot):]) archive.write(path, path[len(arcroot):])

Loading…
Cancel
Save