Skip to content

Commit

Permalink
Merge pull request #41 from cloudblue/change_compression_method_for_zips
Browse files Browse the repository at this point in the history
Set compression method to deflated
  • Loading branch information
Francesco Faraone authored Jul 19, 2022
2 parents 246e40f + 3ae9446 commit 0307853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connect/reports/renderers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def pack_files(self, report_file, summary_file, output_file):
tokens = output_file.split('.')
if tokens[-1] != 'zip':
output_file = f'{tokens[0]}.zip'
with zipfile.ZipFile(output_file, 'w') as repzip:
with zipfile.ZipFile(output_file, 'w', compression=zipfile.ZIP_DEFLATED) as repzip:
repzip.write(report_file, os.path.basename(report_file))
repzip.write(summary_file, os.path.basename(summary_file))

Expand Down

0 comments on commit 0307853

Please sign in to comment.