aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/easy_install.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2018-09-23 11:48:44 -0400
committerJason R. Coombs <jaraco@jaraco.com>2018-09-23 11:48:44 -0400
commit8c355d7c2f20feaf85c2ee5a96e993826e62bbd4 (patch)
treecea4805a6e3a2eb5af9d7479867e492d6425c3c6 /setuptools/command/easy_install.py
parentf325331100dc82916cba35b7310030fe6f337767 (diff)
downloadexternal_python_setuptools-8c355d7c2f20feaf85c2ee5a96e993826e62bbd4.tar.gz
external_python_setuptools-8c355d7c2f20feaf85c2ee5a96e993826e62bbd4.tar.bz2
external_python_setuptools-8c355d7c2f20feaf85c2ee5a96e993826e62bbd4.zip
Use stacklevel=2 to better reveal usage of deprecated calls.
Diffstat (limited to 'setuptools/command/easy_install.py')
-rw-r--r--setuptools/command/easy_install.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index dd17cc13..a1470f6d 100644
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -2085,7 +2085,7 @@ class ScriptWriter:
@classmethod
def get_script_header(cls, script_text, executable=None, wininst=False):
# for backward compatibility
- warnings.warn("Use get_header", DeprecationWarning)
+ warnings.warn("Use get_header", DeprecationWarning, stacklevel=2)
if wininst:
executable = "python.exe"
cmd = cls.command_spec_class.best().from_param(executable)