forked from rosa/hakurei
c5a02da0f0
Signed-off-by: Ophestra <cat@gensokyo.uk>
23 lines
1.0 KiB
Diff
23 lines
1.0 KiB
Diff
diff --git a/Lib/zipfile/__init__.py b/Lib/zipfile/__init__.py
|
|
index 2b6e6163b96..180b1bdb42a 100644
|
|
--- a/Lib/zipfile/__init__.py
|
|
+++ b/Lib/zipfile/__init__.py
|
|
@@ -621,7 +621,7 @@ def _decodeExtra(self, filename_crc):
|
|
extra = extra[ln+4:]
|
|
|
|
@classmethod
|
|
- def from_file(cls, filename, arcname=None, *, strict_timestamps=True):
|
|
+ def from_file(cls, filename, arcname=None, *, strict_timestamps=False):
|
|
"""Construct an appropriate ZipInfo for a file on the filesystem.
|
|
|
|
filename should be the path to a file or directory on the
|
|
@@ -1421,7 +1421,7 @@ class ZipFile:
|
|
_ignore_invalid_names = False
|
|
|
|
def __init__(self, file, mode="r", compression=ZIP_STORED, allowZip64=True,
|
|
- compresslevel=None, *, strict_timestamps=True, metadata_encoding=None):
|
|
+ compresslevel=None, *, strict_timestamps=False, metadata_encoding=None):
|
|
"""Open the ZIP file with mode read 'r', write 'w', exclusive create
|
|
'x', or append 'a'."""
|
|
if mode not in ('r', 'w', 'x', 'a'):
|