summaryrefslogtreecommitdiffstats
path: root/Doc/library/zipfile.rst
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2011-10-19 17:38:35 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2011-10-19 17:38:35 (GMT)
commitddd40312d502257adbcad4e9bdcecd237900f95a (patch)
treeba7d3605cf23decd35be7fc0e4e5682a3d36afca /Doc/library/zipfile.rst
parent59a06d412d3a130c770faa1fc8d8fe13b0a67d3c (diff)
downloadcpython-ddd40312d502257adbcad4e9bdcecd237900f95a.zip
cpython-ddd40312d502257adbcad4e9bdcecd237900f95a.tar.gz
cpython-ddd40312d502257adbcad4e9bdcecd237900f95a.tar.bz2
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/zipfile.rst')
-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 30a0361..14e40c8 100644
--- a/Doc/library/zipfile.rst
+++ b/Doc/library/zipfile.rst
@@ -388,7 +388,7 @@ Instances have the following attributes:
+-------+--------------------------+
| Index | Value |
+=======+==========================+
- | ``0`` | Year |
+ | ``0`` | Year (>= 1980) |
+-------+--------------------------+
| ``1`` | Month (one-based) |
+-------+--------------------------+
@@ -401,6 +401,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