]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-116380: Revert move of pathlib globbing code to `pathlib._glob` (#118678)
authorBarney Gale <barney.gale@gmail.com>
Tue, 7 May 2024 00:32:48 +0000 (01:32 +0100)
committerGitHub <noreply@github.com>
Tue, 7 May 2024 00:32:48 +0000 (00:32 +0000)
commitb4bdf83cc67434235d9630c92c84a5261992b235
treed0b2c6b8a0b982e0325c4c34864213bb5e2048ed
parentff6cbb2503a8fe3fceeadd889e34fc9a8f308ecd
GH-116380: Revert move of pathlib globbing code to `pathlib._glob` (#118678)

The previous change made the `glob` module slower to import, because it
imported `pathlib._glob` and hence the rest of `pathlib`.

Reverts a40f557d7b7a355a55bb90c068e3e9202fd9c8f2.
Lib/glob.py
Lib/pathlib/_abc.py
Lib/pathlib/_glob.py [deleted file]
Lib/pathlib/_local.py