[3.13] Docs: document plistlib.InvalidFileException (GH-132069) (#132116)

Docs: document `plistlib.InvalidFileException` (GH-132069)
(cherry picked from commit 99e9798d61)

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
This commit is contained in:
Miss Islington (bot) 2025-04-05 10:53:13 +02:00 committed by GitHub
parent 240c200cce
commit 65181de34c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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