]> granicus.if.org Git - python/commitdiff
closes bpo-33202: fix os.walk mentioning os.listdir instead of os.scandir (GH-6335)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 3 Apr 2018 03:39:14 +0000 (20:39 -0700)
committerGitHub <noreply@github.com>
Tue, 3 Apr 2018 03:39:14 +0000 (20:39 -0700)
(cherry picked from commit badb894bbbb8aaa8b669c4a6f675a0bc7d98e188)

Co-authored-by: Andrés Delfino <34587441+andresdelfino@users.noreply.github.com>
Doc/library/os.rst

index b2722168bc213841b638e2f8c82e4b50a5370cf6..b3179acac0d8ea8e1770409dd5d54878d0e403e0 100644 (file)
@@ -2725,7 +2725,7 @@ features:
    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
+   By default, errors from the :func:`scandir` call are ignored.  If optional
    argument *onerror* is specified, it should be a function; it will be called with
    one argument, an :exc:`OSError` instance.  It can report the error to continue
    with the walk, or raise the exception to abort the walk.  Note that the filename