allowZip64.patch 668 B

12345678910111213
  1. diff -Nru Python-2.7.17.orig/Lib/zipfile.py Python-2.7.17/Lib/zipfile.py
  2. --- Python-2.7.17.orig/Lib/zipfile.py 2019-10-19 21:38:44.000000000 +0300
  3. +++ Python-2.7.17/Lib/zipfile.py 2019-11-18 00:43:00.452488503 +0300
  4. @@ -746,7 +746,7 @@
  5. fp = None # Set here since __del__ checks it
  6. - def __init__(self, file, mode="r", compression=ZIP_STORED, allowZip64=False):
  7. + def __init__(self, file, mode="r", compression=ZIP_STORED, allowZip64=True):
  8. """Open the ZIP file with mode read "r", write "w" or append "a"."""
  9. if mode not in ("r", "w", "a"):
  10. raise RuntimeError('ZipFile() requires mode "r", "w", or "a"')