diff --git a/Lib/os.py b/Lib/os.py index 90beab9b74c..3d2c6d3d492 100644 --- a/Lib/os.py +++ b/Lib/os.py @@ -272,7 +272,7 @@ def renames(old, new): empty. Works like rename, except creation of any intermediate directories needed to make the new pathname good is attempted first. After the rename, directories corresponding to rightmost - path segments of the old name will be pruned way until either the + path segments of the old name will be pruned until either the whole path is consumed or a nonempty directory is found. Note: this function can fail with the new directory structure made