Commit 0ff108d3 authored by Ned Deily's avatar Ned Deily

Change pathlib documentation to use "raise" instead of "throw".

parent 50637457
...@@ -655,7 +655,7 @@ call fails (for example because the path doesn't exist): ...@@ -655,7 +655,7 @@ call fails (for example because the path doesn't exist):
.. method:: Path.group() .. 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. 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): ...@@ -774,7 +774,7 @@ call fails (for example because the path doesn't exist):
.. method:: Path.owner() .. 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. if the file's uid isn't found in the system database.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment