support the optional line argument for idle
This commit is contained in:
parent
501447d7c7
commit
9dc0a639bd
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue