]> granicus.if.org Git - python/commitdiff
closes bpo-33202: fix os.walk mentioning os.listdir instead of os.scandir (GH-6335)
authorAndrés Delfino <34587441+andresdelfino@users.noreply.github.com>
Tue, 3 Apr 2018 02:48:54 +0000 (23:48 -0300)
committerBenjamin Peterson <benjamin@python.org>
Tue, 3 Apr 2018 02:48:54 +0000 (19:48 -0700)
Doc/library/os.rst

index e685b33302bd8e70f9a51d274c2ac37a201d9762..d269d0b0eaa6ce09d903617af8fe0e84f067cdf5 100644 (file)
@@ -2812,7 +2812,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