closes bpo-33202: fix os.walk mentioning os.listdir instead of os.sca… · python/cpython@f6d1d65 (original) (raw)

Original file line number Diff line number Diff line change
@@ -2812,7 +2812,7 @@ features:
2812 2812 no effect on the behavior of the walk, because in bottom-up mode the directories
2813 2813 in *dirnames* are generated before *dirpath* itself is generated.
2814 2814
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
2816 2816 argument *onerror* is specified, it should be a function; it will be called with
2817 2817 one argument, an :exc:`OSError` instance. It can report the error to continue
2818 2818 with the walk, or raise the exception to abort the walk. Note that the filename