mirror of
https://github.com/python/cpython.git
synced 2026-05-10 06:31:43 -04:00
37651cfbce
Use the new `PathBase.scandir()` method in `PathBase.walk()`, which greatly reduces the number of `PathBase.stat()` calls needed when walking. There are no user-facing changes, because the pathlib ABCs are still private and `Path.walk()` doesn't use the implementation in its superclass.