Commit 8c355d7c authored by Jason R. Coombs's avatar Jason R. Coombs

Use stacklevel=2 to better reveal usage of deprecated calls.

parent f3253311
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment