summaryrefslogtreecommitdiffstats
path: root/Lib/os.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-12-22 22:08:24 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-12-22 22:08:24 (GMT)
commit0bddc9eb15b88b22676aa516740f3ebd20fb8bb1 (patch)
treed91365013fc0bfbe21c9cb53a0b6d22a72c22d06 /Lib/os.py
parent0ce7a3a34cec0e625f63d46390a8c1d2e167494f (diff)
downloadcpython-0bddc9eb15b88b22676aa516740f3ebd20fb8bb1.zip
cpython-0bddc9eb15b88b22676aa516740f3ebd20fb8bb1.tar.gz
cpython-0bddc9eb15b88b22676aa516740f3ebd20fb8bb1.tar.bz2
Issue #25860: os.fwalk() no longer skips remaining directories when error occurs.
Original patch by Samson Lee.
Diffstat (limited to 'Lib/os.py')
-rw-r--r--Lib/os.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/os.py b/Lib/os.py
index 2b89b93..13a42c3 100644
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -514,7 +514,7 @@ if {open, stat} <= supports_dir_fd and {listdir, stat} <= supports_fd:
except OSError as err:
if onerror is not None:
onerror(err)
- return
+ continue
try:
if follow_symlinks or path.samestat(orig_st, stat(dirfd)):
dirpath = path.join(toppath, name)