LEFT | RIGHT |
1 """ | 1 """ |
2 Read and write ZIP files. | 2 Read and write ZIP files. |
3 | 3 |
4 XXX references to utf-8 need further investigation. | 4 XXX references to utf-8 need further investigation. |
5 """ | 5 """ |
6 import io | 6 import io |
7 import os | 7 import os |
8 import re | 8 import re |
9 import imp | 9 import imp |
10 import sys | 10 import sys |
(...skipping 1407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1418 # else: ignore | 1418 # else: ignore |
1419 | 1419 |
1420 zf = ZipFile(args[1], 'w', allowZip64=True) | 1420 zf = ZipFile(args[1], 'w', allowZip64=True) |
1421 for src in args[2:]: | 1421 for src in args[2:]: |
1422 addToZip(zf, src, os.path.basename(src)) | 1422 addToZip(zf, src, os.path.basename(src)) |
1423 | 1423 |
1424 zf.close() | 1424 zf.close() |
1425 | 1425 |
1426 if __name__ == "__main__": | 1426 if __name__ == "__main__": |
1427 main() | 1427 main() |
LEFT | RIGHT |