summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2011-10-19 17:52:41 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2011-10-19 17:52:41 (GMT)
commit7e3062b320a52f7b73751c432c33c1e46085de59 (patch)
tree782efcd6163394bd6d8c324f2e40f72e1b196708 /Doc/library
parent294c231aa5a9b52fca429209c6091d44c8060008 (diff)
parent29fa9d4d68af7d22b88545fa8bc4ae186d256fd3 (diff)
downloadcpython-7e3062b320a52f7b73751c432c33c1e46085de59.zip
cpython-7e3062b320a52f7b73751c432c33c1e46085de59.tar.gz
cpython-7e3062b320a52f7b73751c432c33c1e46085de59.tar.bz2
default - 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.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/zipfile.rst6
1 files changed, 5 insertions, 1 deletions
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 @@ Instances have the following attributes:
+-------+--------------------------+
| Index | Value |
+=======+==========================+
- | ``0`` | Year |
+ | ``0`` | Year (>= 1980) |
+-------+--------------------------+
| ``1`` | Month (one-based) |
+-------+--------------------------+
@@ -411,6 +411,10 @@ Instances have the following attributes:
| ``5`` | Seconds (zero-based) |
+-------+--------------------------+
+ .. note::
+
+ The ZIP file format does not support timestamps before 1980.
+
.. attribute:: ZipInfo.compress_type