mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
Fix a directive in the pathlib
docs (GH-93030)
This commit is contained in:
parent
f51ed04c66
commit
d59b2d0441
1 changed files with 1 additions and 1 deletions
|
@ -1022,7 +1022,7 @@ call fails (for example because the path doesn't exist).
|
|||
Rename this file or directory to the given *target*, and return a new Path
|
||||
instance pointing to *target*. On Unix, if *target* exists and is a file,
|
||||
it will be replaced silently if the user has permission.
|
||||
On Windows, if *target* exists, :data:`FileExistsError` will be raised.
|
||||
On Windows, if *target* exists, :exc:`FileExistsError` will be raised.
|
||||
*target* can be either a string or another path object::
|
||||
|
||||
>>> p = Path('foo')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue