1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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

This commit is contained in:
Ben Doherty 2016-05-26 21:33:27 -04:00 committed by Matt Clay
parent 3465375e42
commit 409f67584e

View file

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