]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
support the optional line argument for idle
authorBenjamin Peterson <benjamin@python.org>
Wed, 15 Oct 2008 21:05:55 +0000 (21:05 +0000)
committerBenjamin Peterson <benjamin@python.org>
Wed, 15 Oct 2008 21:05:55 +0000 (21:05 +0000)
Lib/idlelib/run.py

index 7827c740e66827c1dfffbfe9827ba5e8c541cd21..35a50314ca8c642db15ac2ee9ef246f38ffb48ae 100644 (file)
@@ -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)