diff options
author | Inada Naoki <songofacandy@gmail.com> | 2021-03-02 02:49:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-02 02:49:10 (GMT) |
commit | 5bfa94560519bbe70ae66ff0a29498f2ae2e1937 (patch) | |
tree | 0231b0103c22f446e0ebec9ab31366ed53679b8c /Lib/distutils | |
parent | a347bc0b35c982e9600838d5a545e244bb76a4bf (diff) | |
download | cpython-5bfa94560519bbe70ae66ff0a29498f2ae2e1937.zip cpython-5bfa94560519bbe70ae66ff0a29498f2ae2e1937.tar.gz cpython-5bfa94560519bbe70ae66ff0a29498f2ae2e1937.tar.bz2 |
bpo-41282: distutils: Fix stacklevel for DeprecationWarning (GH-24657)
DeprecationWarning is emit for `import distutils`, not for `distutils` itself.
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/__init__.py b/Lib/distutils/__init__.py index 7b2b059..8eef902 100644 --- a/Lib/distutils/__init__.py +++ b/Lib/distutils/__init__.py @@ -16,4 +16,4 @@ __version__ = sys.version[:sys.version.index(' ')] warnings.warn("The distutils package is deprecated and slated for " "removal in Python 3.12. Use setuptools or check " "PEP 632 for potential alternatives", - DeprecationWarning) + DeprecationWarning, 2) |