mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
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.
This commit is contained in:
parent
5eada94163
commit
d001ffe745
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue