mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
support the optional line argument for idle
This commit is contained in:
parent
501447d7c7
commit
9dc0a639bd
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue