]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-119169: Simplify `os.walk()` exception handling (#121435)
authorBarney Gale <barney.gale@gmail.com>
Mon, 8 Jul 2024 16:41:01 +0000 (17:41 +0100)
committerGitHub <noreply@github.com>
Mon, 8 Jul 2024 16:41:01 +0000 (17:41 +0100)
commitdb00fee3a22db1c4b893b432c64a8123d7e92322
tree0e223e967f5fcc99dcee999fbe00c33dbf44f762
parent5289550b33de3d56f89a5d44a665283f7c8483a7
GH-119169: Simplify `os.walk()` exception handling (#121435)

Handle errors from `os.scandir()` and `ScandirIterator` similarly, which
lets us loop over directory entries with `for`.
Lib/os.py
Misc/NEWS.d/next/Library/2024-07-06-16-08-39.gh-issue-119169.o0YymL.rst [new file with mode: 0644]