]> 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:38:53 +0000 (17:38 -0700)
committerSenthil Kumaran <senthil@uthcode.com>
Mon, 4 Jul 2011 00:38:53 +0000 (17:38 -0700)
Lib/idlelib/PyShell.py

index 0c95df475ce6e1700f4b7c7f9d777aeb2601f98f..9dd43cfa912f39e3c6622be7d71326b20c38e62b 100644 (file)
@@ -61,7 +61,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