summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-08-18 22:44:31 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-08-18 22:44:31 (GMT)
commitd001ffe7455605219ae47867beb2b8eb643e4493 (patch)
tree2e7dee06ee5b647d27ef1ca5231d30e71d9bf79c /Doc/library
parent5eada9416368f43a138f569447d36f3bff52b5f9 (diff)
downloadcpython-d001ffe7455605219ae47867beb2b8eb643e4493.zip
cpython-d001ffe7455605219ae47867beb2b8eb643e4493.tar.gz
cpython-d001ffe7455605219ae47867beb2b8eb643e4493.tar.bz2
Minor improvements to BadZipFile and BadZipfile docs.
I made the doc for the compat alias BadZipfile shorter and used a directive to document deprecation. I figured there was no point of talking about zipfile.error (“the old name” that’s older than the other old name BadZipfile) in the 3.x docs so I just removed it.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/zipfile.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst
index 3282054..019a894 100644
--- a/Doc/library/zipfile.rst
+++ b/Doc/library/zipfile.rst
@@ -30,15 +30,16 @@ The module defines the following items:
.. exception:: BadZipFile
- The error raised for bad ZIP files (old name: ``zipfile.error``).
+ The error raised for bad ZIP files.
.. versionadded:: 3.2
.. exception:: BadZipfile
- This is an alias for :exc:`BadZipFile` that exists for compatibility with
- Python versions prior to 3.2. Usage is deprecated.
+ Alias of :exc:`BadZipFile`, for compatibility with older Python versions.
+
+ .. deprecated:: 3.2
.. exception:: LargeZipFile