]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-119169: Implement `pathlib.Path.walk()` using `os.walk()` (#119573)
authorBarney Gale <barney.gale@gmail.com>
Wed, 29 May 2024 20:51:04 +0000 (21:51 +0100)
committerGitHub <noreply@github.com>
Wed, 29 May 2024 20:51:04 +0000 (20:51 +0000)
commit7ff61f51b6f75315291419269295a8ac3933397b
tree21aa4cc28d247bf4d94f4e3aaf2724ae95b9c927
parenta150679f90c6e3f017bd75cac3b8f727063cc4aa
GH-119169: Implement `pathlib.Path.walk()` using `os.walk()` (#119573)

For silly reasons, pathlib's generic implementation of `walk()` currently
resides in `glob._Globber`. This commit moves it into
`pathlib._abc.PathBase.walk()` where it really belongs, and makes
`pathlib.Path.walk()` call `os.walk()`.
Lib/glob.py
Lib/pathlib/_abc.py
Lib/pathlib/_local.py