Skip to content

Commit 0c11043

Browse files
[3.12] Docs: document plistlib.InvalidFileException (GH-132069) (#132117)
Docs: document `plistlib.InvalidFileException` (GH-132069) (cherry picked from commit 99e9798) Co-authored-by: Yuki Kobayashi <[email protected]>
1 parent 1d8cd48 commit 0c11043

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Doc/library/plistlib.rst

+10-2
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ This module defines the following functions:
7474
exceptions on ill-formed XML. Unknown elements will simply be ignored
7575
by the plist parser.
7676

77-
The parser for the binary format raises :exc:`InvalidFileException`
78-
when the file cannot be parsed.
77+
The parser raises :exc:`InvalidFileException` when the file cannot be parsed.
7978

8079
.. versionadded:: 3.4
8180

@@ -154,6 +153,15 @@ The following constants are available:
154153
.. versionadded:: 3.4
155154

156155

156+
The module defines the following exceptions:
157+
158+
.. exception:: InvalidFileException
159+
160+
Raised when a file cannot be parsed.
161+
162+
.. versionadded:: 3.4
163+
164+
157165
Examples
158166
--------
159167

0 commit comments

Comments
 (0)