Skip to content

Commit badb894

Browse files
andresdelfinobenjaminp
authored andcommitted
closes bpo-33202: fix os.walk mentioning os.listdir instead of os.scandir (pythonGH-6335)
1 parent d1c82c5 commit badb894

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
@@ -2812,7 +2812,7 @@ features:
28122812
no effect on the behavior of the walk, because in bottom-up mode the directories
28132813
in *dirnames* are generated before *dirpath* itself is generated.
28142814

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

0 commit comments

Comments
 (0)