From: Yuki Kobayashi Date: Sat, 5 Apr 2025 08:46:17 +0000 (+0900) Subject: Docs: document `plistlib.InvalidFileException` (#132069) X-Git-Tag: v3.14.0a7~60 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=99e9798d612222785db427eb295c847147fe5e78;p=thirdparty%2FPython%2Fcpython.git Docs: document `plistlib.InvalidFileException` (#132069) --- diff --git a/Doc/library/plistlib.rst b/Doc/library/plistlib.rst index ad96be755b81..c3a133e46a64 100644 --- a/Doc/library/plistlib.rst +++ b/Doc/library/plistlib.rst @@ -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 --------