]> granicus.if.org Git - python/commitdiff
Fix closes issue12438 - idlelib.PyShell's showformatwarning method was passing an...
authorSenthil Kumaran <senthil@uthcode.com>
Mon, 4 Jul 2011 00:39:20 +0000 (17:39 -0700)
committerSenthil Kumaran <senthil@uthcode.com>
Mon, 4 Jul 2011 00:39:20 +0000 (17:39 -0700)
Lib/idlelib/PyShell.py

index 06c8bba4d671af33725d09703d1b245985d148fb..834805ea7b4fa359dda2163f1f960ad09def77e5 100644 (file)
@@ -59,7 +59,7 @@ else:
             file = warning_stream
         try:
             file.write(warnings.formatwarning(message, category, filename,
-                                              lineno, file=file, line=line))
+                                              lineno, line=line))
         except IOError:
             pass  ## file (probably __stderr__) is invalid, warning dropped.
     warnings.showwarning = idle_showwarning