From: Benjamin Peterson Date: Wed, 15 Oct 2008 21:05:55 +0000 (+0000) Subject: support the optional line argument for idle X-Git-Tag: v2.7a1~2737 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dc0a639bde934e840c5646cdaa5cbaadf1ddc9b;p=thirdparty%2FPython%2Fcpython.git support the optional line argument for idle --- diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py index 7827c740e668..35a50314ca8c 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)