Skip to content

Commit fa5157e

Browse files
closes bpo-33202: fix os.walk mentioning os.listdir instead of os.scandir (pythonGH-6335)
(cherry picked from commit badb894) Co-authored-by: Andrés Delfino <34587441+andresdelfino@users.noreply.github.com>
1 parent 9a90826 commit fa5157e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/os.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2725,7 +2725,7 @@ features:
27252725
no effect on the behavior of the walk, because in bottom-up mode the directories
27262726
in *dirnames* are generated before *dirpath* itself is generated.
27272727

2728-
By default, errors from the :func:`listdir` call are ignored. If optional
2728+
By default, errors from the :func:`scandir` call are ignored. If optional
27292729
argument *onerror* is specified, it should be a function; it will be called with
27302730
one argument, an :exc:`OSError` instance. It can report the error to continue
27312731
with the walk, or raise the exception to abort the walk. Note that the filename

0 commit comments

Comments
 (0)