From 9dc0a639bde934e840c5646cdaa5cbaadf1ddc9b Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Wed, 15 Oct 2008 21:05:55 +0000 Subject: support the optional line argument for idle --- Lib/idlelib/run.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v0.12