mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-84459: Make wording more specific for Path.replace (GH-91853)
#84459
This commit is contained in:
parent
c6b84a727c
commit
161dff7e10
2 changed files with 2 additions and 2 deletions
|
@ -2348,7 +2348,7 @@ features:
|
|||
|
||||
.. function:: replace(src, dst, *, src_dir_fd=None, dst_dir_fd=None)
|
||||
|
||||
Rename the file or directory *src* to *dst*. If *dst* is a directory,
|
||||
Rename the file or directory *src* to *dst*. If *dst* is a non-empty directory,
|
||||
:exc:`OSError` will be raised. If *dst* exists and is a file, it will
|
||||
be replaced silently if the user has permission. The operation may fail
|
||||
if *src* and *dst* are on different filesystems. If successful,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue