From 8c355d7c2f20feaf85c2ee5a96e993826e62bbd4 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 23 Sep 2018 11:48:44 -0400 Subject: Use stacklevel=2 to better reveal usage of deprecated calls. --- setuptools/command/easy_install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setuptools/command/easy_install.py') 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) -- cgit v1.2.1