summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2011-10-19 17:46:00 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2011-10-19 17:46:00 (GMT)
commit29fa9d4d68af7d22b88545fa8bc4ae186d256fd3 (patch)
tree1f884092ef016b20bffeec3566e0323d82ddf221 /Doc
parent1ef0c0349e8fdb5415e21231cb42edbf232b742a (diff)
downloadcpython-29fa9d4d68af7d22b88545fa8bc4ae186d256fd3.zip
cpython-29fa9d4d68af7d22b88545fa8bc4ae186d256fd3.tar.gz
cpython-29fa9d4d68af7d22b88545fa8bc4ae186d256fd3.tar.bz2
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.
Diffstat (limited to 'Doc')
-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