From: Ned Deily Date: Wed, 27 Nov 2013 22:42:55 +0000 (-0800) Subject: Change pathlib documentation to use "raise" instead of "throw". X-Git-Tag: v3.4.0b2~449 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c034156f261ed8982febc56ac2cbe1cda6f7e279;p=thirdparty%2FPython%2Fcpython.git Change pathlib documentation to use "raise" instead of "throw". --- diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index 90a32899ee60..d4e08629d8ad 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -655,7 +655,7 @@ call fails (for example because the path doesn't exist): .. method:: Path.group() - Return the name of the group owning the file. :exc:`KeyError` is thrown + Return the name of the group owning the file. :exc:`KeyError` is raised if the file's gid isn't found in the system database. @@ -774,7 +774,7 @@ call fails (for example because the path doesn't exist): .. method:: Path.owner() - Return the name of the user owning the file. :exc:`KeyError` is thrown + Return the name of the user owning the file. :exc:`KeyError` is raised if the file's uid isn't found in the system database.