]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-116380: Move pathlib globbing implementation into `pathlib._glob` (#118562)
authorBarney Gale <barney.gale@gmail.com>
Fri, 3 May 2024 20:29:25 +0000 (21:29 +0100)
committerGitHub <noreply@github.com>
Fri, 3 May 2024 20:29:25 +0000 (20:29 +0000)
commita40f557d7b7a355a55bb90c068e3e9202fd9c8f2
treee61989ef41abe7d9eb6b693bbd7300f308b16396
parent37d095002216a4e45b4e82539ca0421ded8aaae3
GH-116380: Move pathlib globbing implementation into `pathlib._glob` (#118562)

Moving this code under the `pathlib` package makes it quite a lot easier
to backport in the `pathlib-abc` PyPI package. It was a bit foolish of me
to add it to `glob` in the first place.

Also add `translate()` to `__all__` in `glob`. This function is new in
3.13, so there's no NEWS needed.
Lib/glob.py
Lib/pathlib/__init__.py
Lib/pathlib/_abc.py
Lib/pathlib/_glob.py [new file with mode: 0644]