]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Docs: document `plistlib.InvalidFileException` (#132069)
authorYuki Kobayashi <drsuaimqjgar@gmail.com>
Sat, 5 Apr 2025 08:46:17 +0000 (17:46 +0900)
committerGitHub <noreply@github.com>
Sat, 5 Apr 2025 08:46:17 +0000 (08:46 +0000)
Doc/library/plistlib.rst

index ad96be755b81581bce67d77239105d4c78576282..c3a133e46a64d6b9dc127357104e65f158d67b9d 100644 (file)
@@ -78,8 +78,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
 
@@ -170,6 +169,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
 --------