]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-110109: pathlib ABCs: drop use of `warnings._deprecated()` (#113419)
authorBarney Gale <barney.gale@gmail.com>
Wed, 27 Dec 2023 15:40:03 +0000 (15:40 +0000)
committerGitHub <noreply@github.com>
Wed, 27 Dec 2023 15:40:03 +0000 (15:40 +0000)
commit1b19d7376818d14ab865fa22cb66baeacdb88277
treedd51850f3490433f17896c242eb7c21ad8e77546
parentf8b6e171ad79bf3e57e39ebc0d96ad097a310cbf
GH-110109: pathlib ABCs: drop use of `warnings._deprecated()` (#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.
Lib/pathlib/_abc.py