Commit graph

2 commits

Author SHA1 Message Date
Barney Gale
d8d94911e2
Move pathlib implementation out of __init__.py (#118582)
Use the `__init__.py` file only for imports that define the API, following the example of asyncio.
2024-05-05 20:57:19 +01:00
Barney Gale
a40f557d7b
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.
2024-05-03 20:29:25 +00:00