FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GH-116380: Move pathlib-specific code from `glob` to `pathlib._abc`. by barneygale · Pull Request #120011 · python/cpython · GitHub

Repository navigation

GH-116380: Move pathlib-specific code from glob to pathlib._abc. - #120011

Merged
barneygale merged 3 commits into
python:mainfrom
barneygale:gh-116380-clean-glob
Jun 7, 2024
Merged

barneygale merged 3 commits into
python:mainfrom
barneygale:gh-116380-clean-glob

Conversation

barneygale commented Jun 4, 2024 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

In glob._Globber, move pathlib-specific methods to pathlib._abc.Globber and replace them with abstract methods. Rename glob._Globber to glob._GlobberBase, and glob._StringGlobber to glob._Globber. As a result, the glob module is no longer befouled by code that can only ever apply to pathlib.

No change of behaviour.

…abc`.

In `glob._Globber`, move pathlib-specific methods to `pathlib._abc.Globber`
and replace them with abstract methods. Rename `glob._Globber` to
`glob._GlobberBase`, and  `glob._StringGlobber` to `glob._Globber`. As a
result, the `glob` module is no longer befouled by code that can only ever
apply to pathlib.

No change of behaviour.
barneygale merged commit 242c749 into python:main Jun 7, 2024

Copy link
Copy Markdown

Thanks @barneygale for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

Copy link
Copy Markdown

Sorry, @barneygale, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 242c7498e5a889b47847fb6f0f133ce461fa7e24 3.13

barneygale removed the needs backport to 3.13 only security fixes label Jun 7, 2024
noahbkim pushed a commit to hudson-trading/cpython that referenced this pull request Jul 11, 2024
…abc`. (python#120011)

In `glob._Globber`, move pathlib-specific methods to `pathlib._abc.PathGlobber` and replace them with abstract methods. Rename `glob._Globber` to `glob._GlobberBase`. As a result, the `glob` module is no longer befouled by code that can only ever apply to pathlib.

No change of behaviour.
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
…abc`. (python#120011)

In `glob._Globber`, move pathlib-specific methods to `pathlib._abc.PathGlobber` and replace them with abstract methods. Rename `glob._Globber` to `glob._GlobberBase`. As a result, the `glob` module is no longer befouled by code that can only ever apply to pathlib.

No change of behaviour.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL