| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,9 +14,9 @@ def conc_gzip_files(in_dir, out_file, append=False): | |||
| 14 | 14 | else creates a new output file. | |
| 15 | 15 | ||
| 16 | 16 | """ | |
| 17 | - write_mode = 'bw' | ||
| 17 | + write_mode = 'wb' | ||
| 18 | 18 | if append: | |
| 19 | - write_mode = 'ba' | ||
| 19 | + write_mode = 'ab' | ||
| 20 | 20 | gzips = [os.path.join(in_dir, i) for i in os.listdir(in_dir) if i.endswith('.gz')] | |
| 21 | 21 | with open(out_file, write_mode) as ofile: | |
| 22 | 22 | for f in gzips: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments