Skip to content

Commit 86c23d5

Browse files
committed
Update conc_gzip_files.py
1 parent 8c34616 commit 86c23d5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

useful_scripts/conc_gzip_files.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ def conc_gzip_files(in_dir, out_file, append=False):
1414
else creates a new output file.
1515
1616
"""
17-
write_mode = 'bw'
17+
write_mode = 'wb'
1818
if append:
19-
write_mode = 'ba'
19+
write_mode = 'ab'
2020
gzips = [os.path.join(in_dir, i) for i in os.listdir(in_dir) if i.endswith('.gz')]
2121
with open(out_file, write_mode) as ofile:
2222
for f in gzips:

0 commit comments

Comments
 (0)