3.2 - Fix closes Issue6090 - Raise a ValueError, instead of failing with unrelated
exceptions, when a document with timestamp earlier than 1980 is provided to
zipfile. Patch contributed by Petri Lehtinen.
diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst
index 019a894..6f84bcc 100644
--- a/Doc/library/zipfile.rst
+++ b/Doc/library/zipfile.rst
@@ -398,7 +398,7 @@
+-------+--------------------------+
| Index | Value |
+=======+==========================+
- | ``0`` | Year |
+ | ``0`` | Year (>= 1980) |
+-------+--------------------------+
| ``1`` | Month (one-based) |
+-------+--------------------------+
@@ -411,6 +411,10 @@
| ``5`` | Seconds (zero-based) |
+-------+--------------------------+
+ .. note::
+
+ The ZIP file format does not support timestamps before 1980.
+
.. attribute:: ZipInfo.compress_type