]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] GH-119169: Implement `pathlib.Path.walk()` using `os.walk()` (GH-119573) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 29 May 2024 21:24:42 +0000 (23:24 +0200)
committerGitHub <noreply@github.com>
Wed, 29 May 2024 21:24:42 +0000 (21:24 +0000)
commita7aa7c41ebfce5bf537c939c8dfc0605adcfabd8
treef6f7e0f071f1e5009eff88c0776dd89cc2975c42
parent061abf8e4c1a0a920067aa73b0e41f40c89e340b
[3.13] GH-119169: Implement `pathlib.Path.walk()` using `os.walk()` (GH-119573) (#119750)

GH-119169: Implement `pathlib.Path.walk()` using `os.walk()` (GH-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()`.
(cherry picked from commit 7ff61f51b6f75315291419269295a8ac3933397b)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
Lib/glob.py
Lib/pathlib/_abc.py
Lib/pathlib/_local.py