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 | aa90e7c573ee2edd41a21d2a9f34e6f3d728f5e5 (patch) | |
tree | 5cc0f2fa7bd84b26da3c5d7fed417d4ba1019a07 /Lib/idlelib | |
parent | 7079240c4aa6b579819f01fad3e99881dfe84731 (diff) | |
download | cpython-aa90e7c573ee2edd41a21d2a9f34e6f3d728f5e5.zip cpython-aa90e7c573ee2edd41a21d2a9f34e6f3d728f5e5.tar.gz cpython-aa90e7c573ee2edd41a21d2a9f34e6f3d728f5e5.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 |