summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-10-23 10:38:11 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-10-23 10:38:11 (GMT)
commit0e316f688ef2499fe31ea7cf8e4884cf22863b0d (patch)
tree062c00572906ad5893522db70522dad9dd6bf282 /Doc
parentd081229c4ea9453e68381fb8a6dac62a0638bc2d (diff)
downloadcpython-0e316f688ef2499fe31ea7cf8e4884cf22863b0d.zip
cpython-0e316f688ef2499fe31ea7cf8e4884cf22863b0d.tar.gz
cpython-0e316f688ef2499fe31ea7cf8e4884cf22863b0d.tar.bz2
Issue #25461: Rephrase os.walk() doc
Patch written by Bernt Røskar Brenna.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/os.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 916f5e5..7bc5989 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -2347,9 +2347,9 @@ features:
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