]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Docs: document `plistlib.InvalidFileException` (GH-132069) (#132117)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 5 Apr 2025 08:53:06 +0000 (10:53 +0200)
committerGitHub <noreply@github.com>
Sat, 5 Apr 2025 08:53:06 +0000 (10:53 +0200)
Docs: document `plistlib.InvalidFileException` (GH-132069)
(cherry picked from commit 99e9798d612222785db427eb295c847147fe5e78)

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
Doc/library/plistlib.rst

index b837a3b6969eef0fbcee9d17a29ee9f5c1ff026c..f67808cf58bd2ee515bf64ecf127e1a278055aac 100644 (file)
@@ -74,8 +74,7 @@ This module defines the following functions:
    exceptions on ill-formed XML.  Unknown elements will simply be ignored
    by the plist parser.
 
-   The parser for the binary format raises :exc:`InvalidFileException`
-   when the file cannot be parsed.
+   The parser raises :exc:`InvalidFileException` when the file cannot be parsed.
 
    .. versionadded:: 3.4
 
@@ -154,6 +153,15 @@ The following constants are available:
    .. versionadded:: 3.4
 
 
+The module defines the following exceptions:
+
+.. exception:: InvalidFileException
+
+   Raised when a file cannot be parsed.
+
+   .. versionadded:: 3.4
+
+
 Examples
 --------