(infp, outfp)
| 40 | # compression stuff. Keep the suffix and the compression function in sync. |
| 41 | compression_suffix = '.bz2' |
| 42 | def compress_data(infp, outfp): |
| 43 | with open(infp, 'rb') as inf: |
| 44 | with bz2.BZ2File(outfp, 'wb') as outf: |
| 45 | shutil.copyfileobj(inf, outf) |
| 46 | |
| 47 | def print_size(fn): |
| 48 | size = (os.stat(fn).st_size) / 1024000 |
no test coverage detected
searching dependent graphs…