From c034156f261ed8982febc56ac2cbe1cda6f7e279 Mon Sep 17 00:00:00 2001 From: Ned Deily Date: Wed, 27 Nov 2013 14:42:55 -0800 Subject: [PATCH] Change pathlib documentation to use "raise" instead of "throw". --- Doc/library/pathlib.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. -- 2.47.3