summaryrefslogtreecommitdiffstats
path: root/Doc/library/os.rst
diff options
context:
space:
mode:
authorAndrés Delfino <34587441+andresdelfino@users.noreply.github.com>2018-04-03 02:48:54 (GMT)
committerBenjamin Peterson <benjamin@python.org>2018-04-03 02:48:54 (GMT)
commitbadb894bbbb8aaa8b669c4a6f675a0bc7d98e188 (patch)
treeee914faa462a1dc53e6a74a698e5fb3252b9d758 /Doc/library/os.rst
parentd1c82c5cc7be0c21dddf86fd19c1702f6218459b (diff)
downloadcpython-badb894bbbb8aaa8b669c4a6f675a0bc7d98e188.zip
cpython-badb894bbbb8aaa8b669c4a6f675a0bc7d98e188.tar.gz
cpython-badb894bbbb8aaa8b669c4a6f675a0bc7d98e188.tar.bz2
closes bpo-33202: fix os.walk mentioning os.listdir instead of os.scandir (GH-6335)
Diffstat (limited to 'Doc/library/os.rst')
-rw-r--r--Doc/library/os.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index e685b33..d269d0b 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -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