]> granicus.if.org Git - python/commitdiff
Issue #25461: Rephrase os.walk() doc
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 23 Oct 2015 10:42:39 +0000 (12:42 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 23 Oct 2015 10:42:39 +0000 (12:42 +0200)
Patch written by Bernt Røskar Brenna.

Doc/library/os.rst
Misc/ACKS

index 1ab039af08cc43b8a86c56195fff08dbc7977275..77f02ab374894b4dd09d0a4aa2c82e3750dd70d8 100644 (file)
@@ -1608,9 +1608,9 @@ Files and Directories
    recurse into the subdirectories whose names remain in *dirnames*; this can be
    used to prune the search, impose a specific order of visiting, or even to inform
    :func:`walk` about directories the caller creates or renames before it resumes
-   :func:`walk` again.  Modifying *dirnames* when *topdown* is ``False`` is
-   ineffective, because in bottom-up mode the directories in *dirnames* are
-   generated before *dirpath* itself is generated.
+   :func:`walk` again.  Modifying *dirnames* when *topdown* is ``False`` has
+   no effect on the behavior of the walk, because in bottom-up mode the directories
+   in *dirnames* are generated before *dirpath* itself is generated.
 
    By default, errors from the :func:`listdir` call are ignored.  If optional
    argument *onerror* is specified, it should be a function; it will be called with
index 32208f5aad1ee07b14f3a9201c9aa9a7e2f1a736..0c7d7d9cd0d7a714f58c1376bdeab5e51b3535d7 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -1179,6 +1179,7 @@ Clinton Roy
 Paul Rubin
 Sam Ruby
 Demur Rumed
+Bernt Røskar Brenna
 Audun S. Runde
 Eran Rundstein
 Rauli Ruohonen