Mercurial > cpython-lru_cache-weakref
diff Lib/idlelib/PyShell.py @ 71171:e9c406a53972 3.2
Fix closes issue12438 - idlelib.PyShell's showformatwarning method was passing an incorrect arg.
| author | Senthil Kumaran <senthil@uthcode.com> |
|---|---|
| date | Sun, 03 Jul 2011 17:39:20 -0700 |
| parents | 3c9232a684ae |
| children | cc86f4ca5020 |
line wrap: on
line diff
--- a/Lib/idlelib/PyShell.py Sun Jul 03 17:21:05 2011 -0700 +++ b/Lib/idlelib/PyShell.py Sun Jul 03 17:39:20 2011 -0700 @@ -59,7 +59,7 @@ 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
