summaryrefslogtreecommitdiffstats
path: root/Doc/library/zipfile.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-10-28 06:42:33 (GMT)
committerGeorg Brandl <georg@python.org>2010-10-28 06:42:33 (GMT)
commit4d540885993b0c8336f20fd52ee3972f0de44c25 (patch)
tree39f15b46ad9556d09b073b477de08269538af91d /Doc/library/zipfile.rst
parentb156a46b26d9f231d7b36d303055af4d2b3b7c17 (diff)
downloadcpython-4d540885993b0c8336f20fd52ee3972f0de44c25.zip
cpython-4d540885993b0c8336f20fd52ee3972f0de44c25.tar.gz
cpython-4d540885993b0c8336f20fd52ee3972f0de44c25.tar.bz2
#7351: add more consistent exception name alias.
Diffstat (limited to 'Doc/library/zipfile.rst')
-rw-r--r--Doc/library/zipfile.rst10
1 files changed, 9 insertions, 1 deletions
diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst
index 864ee48..ef2edfc 100644
--- a/Doc/library/zipfile.rst
+++ b/Doc/library/zipfile.rst
@@ -24,10 +24,18 @@ For other archive formats, see the :mod:`bz2`, :mod:`gzip`, and
The module defines the following items:
-.. exception:: BadZipfile
+.. exception:: BadZipFile
The error raised for bad ZIP files (old name: ``zipfile.error``).
+ .. 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.
+
.. exception:: LargeZipFile