Skip to content

Commit 3ae9446

Browse files
author
Francesco Faraone
committed
Set compression method to deflated
1 parent 246e40f commit 3ae9446

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connect/reports/renderers/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def pack_files(self, report_file, summary_file, output_file):
121121
tokens = output_file.split('.')
122122
if tokens[-1] != 'zip':
123123
output_file = f'{tokens[0]}.zip'
124-
with zipfile.ZipFile(output_file, 'w') as repzip:
124+
with zipfile.ZipFile(output_file, 'w', compression=zipfile.ZIP_DEFLATED) as repzip:
125125
repzip.write(report_file, os.path.basename(report_file))
126126
repzip.write(summary_file, os.path.basename(summary_file))
127127

0 commit comments

Comments
 (0)