Kaydet (Commit) 9dc0a639 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

support the optional line argument for idle

üst 501447d7
......@@ -24,7 +24,8 @@ try:
except ImportError:
pass
else:
def idle_formatwarning_subproc(message, category, filename, lineno):
def idle_formatwarning_subproc(message, category, filename, lineno,
line=None):
"""Format warnings the IDLE way"""
s = "\nWarning (from warnings module):\n"
s += ' File \"%s\", line %s\n' % (filename, lineno)
......
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