From 0c838d4a40d717383bf4aa88cf1e9c544c7a3094 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 9 Dec 2019 22:22:05 +0530 Subject: [PATCH] Turn on allowZip64 by default this matches python3 but not python2 --- src/calibre/utils/zipfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/utils/zipfile.py b/src/calibre/utils/zipfile.py index 56b226fc6c..c25a0a4fc6 100644 --- a/src/calibre/utils/zipfile.py +++ b/src/calibre/utils/zipfile.py @@ -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)