[Python-checkins] r66905 - python/trunk/Lib/idlelib/run.py

benjamin.peterson python-checkins at python.org
Wed Oct 15 23:05:55 CEST 2008


Author: benjamin.peterson
Date: Wed Oct 15 23:05:55 2008
New Revision: 66905

Log:
support the optional line argument for idle

Modified:
   python/trunk/Lib/idlelib/run.py

Modified: python/trunk/Lib/idlelib/run.py
==============================================================================
--- python/trunk/Lib/idlelib/run.py	(original)
+++ python/trunk/Lib/idlelib/run.py	Wed Oct 15 23:05:55 2008
@@ -24,7 +24,8 @@
 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)


More information about the Python-checkins mailing list