support the optional line argument for idle

This commit is contained in:
Benjamin Peterson 2008-10-15 21:05:55 +00:00
parent 501447d7c7
commit 9dc0a639bd
1 changed files with 2 additions and 1 deletions

View File

@ -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)