diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-10-15 21:05:55 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-10-15 21:05:55 (GMT) |
commit | 9dc0a639bde934e840c5646cdaa5cbaadf1ddc9b (patch) | |
tree | 1b55c47714693e21dd435f482c048b8ba645c28a /Lib/idlelib | |
parent | 501447d7c7d8960e4f6e7f2661fcdb14a21d336b (diff) | |
download | cpython-9dc0a639bde934e840c5646cdaa5cbaadf1ddc9b.zip cpython-9dc0a639bde934e840c5646cdaa5cbaadf1ddc9b.tar.gz cpython-9dc0a639bde934e840c5646cdaa5cbaadf1ddc9b.tar.bz2 |
support the optional line argument for idle
Diffstat (limited to 'Lib/idlelib')
-rw-r--r-- | Lib/idlelib/run.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py index 7827c74..35a5031 100644 --- a/Lib/idlelib/run.py +++ b/Lib/idlelib/run.py @@ -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) |