[Python-checkins] gh-93372: Fix typo in os.rename documentation (GH-93401) (GH-93404)

ambv webhook-mailer at python.org
Mon Jun 6 13:11:23 EDT 2022


https://github.com/python/cpython/commit/ce057ae1e338940f02ab58eab9473cebd7cd5d2b
commit: ce057ae1e338940f02ab58eab9473cebd7cd5d2b
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: ambv <lukasz at langa.pl>
date: 2022-06-06T19:11:18+02:00
summary:

gh-93372: Fix typo in os.rename documentation (GH-93401) (GH-93404)

(cherry picked from commit e7aab7c92a7c2e4317023c71e847d55cf5c49f5f)

Co-authored-by: Wei-Ting Yang <74453331+Yang-Wei-Ting at users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz at langa.pl>

files:
M Doc/library/os.rst

diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 1eaf369ff659a..efc5e4ce1e837 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -2307,7 +2307,7 @@ features:
    :exc:`IsADirectoryError` or a :exc:`NotADirectoryError` will be raised
    respectively.  If both are directories and *dst* is empty, *dst* will be
    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
    *dst* are on different filesystems.  If successful, the renaming will be an
    atomic operation (this is a POSIX requirement).



More information about the Python-checkins mailing list