mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
gh-93372: Fix typo in os.rename documentation (GH-93401) (GH-93403)
(cherry picked from commit e7aab7c92a
)
Co-authored-by: Wei-Ting Yang <74453331+Yang-Wei-Ting@users.noreply.github.com>
This commit is contained in:
parent
25444124e3
commit
f0a89e6507
1 changed files with 1 additions and 1 deletions
|
@ -2328,7 +2328,7 @@ features:
|
||||||
:exc:`IsADirectoryError` or a :exc:`NotADirectoryError` will be raised
|
:exc:`IsADirectoryError` or a :exc:`NotADirectoryError` will be raised
|
||||||
respectively. If both are directories and *dst* is empty, *dst* will be
|
respectively. If both are directories and *dst* is empty, *dst* will be
|
||||||
silently replaced. If *dst* is a non-empty directory, an :exc:`OSError`
|
silently replaced. If *dst* is a non-empty directory, an :exc:`OSError`
|
||||||
is raised. If both are files, *dst* it will be replaced silently if the user
|
is raised. If both are files, *dst* will be replaced silently if the user
|
||||||
has permission. The operation may fail on some Unix flavors if *src* and
|
has permission. The operation may fail on some Unix flavors if *src* and
|
||||||
*dst* are on different filesystems. If successful, the renaming will be an
|
*dst* are on different filesystems. If successful, the renaming will be an
|
||||||
atomic operation (this is a POSIX requirement).
|
atomic operation (this is a POSIX requirement).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue