From: Senthil Kumaran Date: Mon, 4 Jul 2011 00:38:53 +0000 (-0700) Subject: Fix closes issue12438 - idlelib.PyShell's showformatwarning method was passing an... X-Git-Tag: v2.7.3rc1~645 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=13502b19c64b2cd37b0b2b66dfcc26d0f028cd84;p=thirdparty%2FPython%2Fcpython.git Fix closes issue12438 - idlelib.PyShell's showformatwarning method was passing an incorrect arg. --- diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index 0c95df475ce6..9dd43cfa912f 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -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