summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2021-03-02 02:49:10 (GMT)
committerGitHub <noreply@github.com>2021-03-02 02:49:10 (GMT)
commit5bfa94560519bbe70ae66ff0a29498f2ae2e1937 (patch)
tree0231b0103c22f446e0ebec9ab31366ed53679b8c /Lib/distutils
parenta347bc0b35c982e9600838d5a545e244bb76a4bf (diff)
downloadcpython-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__.py2
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)