diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2011-07-04 00:39:20 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2011-07-04 00:39:20 (GMT) |
commit | 80dffefcd9885fa59356eaf6931ca11a99cbb392 (patch) | |
tree | 9e21a15c0c4adae8daf695589d68dcacd91e522e /Lib/idlelib | |
parent | b1b25f0ffd6c2d31cf21fa7128ff64c314c3cd2e (diff) | |
download | cpython-80dffefcd9885fa59356eaf6931ca11a99cbb392.zip cpython-80dffefcd9885fa59356eaf6931ca11a99cbb392.tar.gz cpython-80dffefcd9885fa59356eaf6931ca11a99cbb392.tar.bz2 |
Fix closes issue12438 - idlelib.PyShell's showformatwarning method was passing an incorrect arg.
Diffstat (limited to 'Lib/idlelib')
-rw-r--r-- | Lib/idlelib/PyShell.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index 06c8bba..834805e 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -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 |