mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
Change pathlib documentation to use "raise" instead of "throw".
This commit is contained in:
parent
5362abf4ec
commit
c034156f26
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue