Commits

Senthil Kumaran committed 7dd9313

Fix closes issue12438 - idlelib.PyShell's showformatwarning method was passing an incorrect arg.

  • Participants
  • Parent commits 861b483
  • Branches 3.2

Comments (0)

Files changed (1)

Lib/idlelib/PyShell.py

             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