Turn on allowZip64 by default this matches python3 but not python2

This commit is contained in:
Kovid Goyal 2019-12-09 22:22:05 +05:30
parent 65bf9d1f51
commit 0c838d4a40
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -719,7 +719,7 @@ class ZipFile:
fp = None # Set here since __del__ checks it
def __init__(self, file, mode="r", compression=ZIP_DEFLATED, allowZip64=False):
def __init__(self, file, mode="r", compression=ZIP_DEFLATED, allowZip64=True):
"""Open the ZIP file with mode read "r", write "w" or append "a"."""
if mode not in ("r", "w", "a"):
raise RuntimeError('ZipFile() requires mode "r", "w", or "a" not %s'%mode)