[Python-checkins] cpython: Change pathlib documentation to use "raise" instead of "throw".

ned.deily python-checkins at python.org
Wed Nov 27 23:43:32 CET 2013


http://hg.python.org/cpython/rev/acabd3f035fe
changeset:   87619:acabd3f035fe
user:        Ned Deily <nad at acm.org>
date:        Wed Nov 27 14:42:55 2013 -0800
summary:
  Change pathlib documentation to use "raise" instead of "throw".

files:
  Doc/library/pathlib.rst |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst
--- a/Doc/library/pathlib.rst
+++ b/Doc/library/pathlib.rst
@@ -655,7 +655,7 @@
 
 .. 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 @@
 
 .. 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.
 
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list