Skip to content

Commit

Permalink
Switch to ZIP_DEFLATED (closes #61)
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjabear committed Sep 19, 2016
1 parent ad2164b commit 879a1c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gordon/resources/lambdas.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ def get_zip_file(self):
raise exceptions.LambdaBuildProcessError(exc, self)

with tempfile.SpooledTemporaryFile(0, 'wb') as tmp:
with zipfile.ZipFile(tmp, 'w') as zf:
with zipfile.ZipFile(tmp, 'w', zipfile.ZIP_DEFLATED) as zf:
for basedir, dirs, files in os.walk(destination):
relative = os.path.relpath(basedir, destination)
for filename in files:
Expand Down

0 comments on commit 879a1c1

Please sign in to comment.