diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2011-10-19 17:38:35 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2011-10-19 17:38:35 (GMT) |
commit | ddd40312d502257adbcad4e9bdcecd237900f95a (patch) | |
tree | ba7d3605cf23decd35be7fc0e4e5682a3d36afca /Doc/library/zipfile.rst | |
parent | 59a06d412d3a130c770faa1fc8d8fe13b0a67d3c (diff) | |
download | cpython-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.rst | 6 |
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 |