Skip to content

GH-110109: pathlib ABCs: drop use of warnings._deprecated() - #113419

Merged
barneygale merged 2 commits into
python:mainfrom
barneygale:warnings-deprecated-to-warn
Dec 27, 2023
Merged

GH-110109: pathlib ABCs: drop use of warnings._deprecated()#113419
barneygale merged 2 commits into
python:mainfrom
barneygale:warnings-deprecated-to-warn

Conversation

@barneygale

@barneygalebarneygale commented Dec 23, 2023

Copy link
Copy Markdown
Contributor

The pathlib._abc module will be made available as a PyPI backport supporting Python 3.8+. The warnings._deprecated() function was only added last year, and it's private from an external package perspective, so here we switch to warnings.warn() instead.

The `pathlib._abc` module will be made available as a PyPI backport
supporting Python 3.8+. The `warnings._deprecated()` function was only
added last year, and it's private from an external package perspective, so
here we switch to `warnings.warn()` instead.
@barneygale

Copy link
Copy Markdown
ContributorAuthor

Downstream pathlib_abc issue: barneygale/pathlib-abc#11

@barneygale
barneygale merged commit 1b19d73 into python:mainDec 27, 2023
kulikjak pushed a commit to kulikjak/cpython that referenced this pull request Jan 22, 2024
…ython#113419)
The `pathlib._abc` module will be made available as a PyPI backport
supporting Python 3.8+. The `warnings._deprecated()` function was only
added last year, and it's private from an external package perspective, so
here we switch to `warnings.warn()` instead.
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
…ython#113419)
The `pathlib._abc` module will be made available as a PyPI backport
supporting Python 3.8+. The `warnings._deprecated()` function was only
added last year, and it's private from an external package perspective, so
here we switch to `warnings.warn()` instead.
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
…ython#113419)
The `pathlib._abc` module will be made available as a PyPI backport
supporting Python 3.8+. The `warnings._deprecated()` function was only
added last year, and it's private from an external package perspective, so
here we switch to `warnings.warn()` instead.
Sign up for freeto 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

@barneygale