diff options
author | Carl Meyer <carl@oddbird.net> | 2020-04-24 18:19:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-24 18:19:46 (GMT) |
commit | 503de7149d03bdcc671dcbbb5b64f761bb192b4d (patch) | |
tree | 82114dfb3883525435b33c643709136d36745e21 /Lib/lib2to3 | |
parent | 24ffe705c30e36c82940d75fd1454256634d0b3c (diff) | |
download | cpython-503de7149d03bdcc671dcbbb5b64f761bb192b4d.zip cpython-503de7149d03bdcc671dcbbb5b64f761bb192b4d.tar.gz cpython-503de7149d03bdcc671dcbbb5b64f761bb192b4d.tar.bz2 |
bpo-40360: Deprecate lib2to3 module in light of PEP 617 (GH-19663)
Deprecate lib2to3 module in light of PEP 617.
We anticipate removal in the 3.12 timeframe.
Diffstat (limited to 'Lib/lib2to3')
-rw-r--r-- | Lib/lib2to3/__init__.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Lib/lib2to3/__init__.py b/Lib/lib2to3/__init__.py index ea30561..4224dff 100644 --- a/Lib/lib2to3/__init__.py +++ b/Lib/lib2to3/__init__.py @@ -1 +1,8 @@ -#empty +import warnings + + +warnings.warn( + "lib2to3 package is deprecated and may not be able to parse Python 3.10+", + PendingDeprecationWarning, + stacklevel=2, +) |