diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2011-07-03 17:38:53 -0700 |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2011-07-03 17:38:53 -0700 |
commit | 13502b19c64b2cd37b0b2b66dfcc26d0f028cd84 (patch) | |
tree | dd079463f321db2b2caa7d7c0ff606a8f54c3fed /Lib/idlelib/PyShell.py | |
parent | e04d256c2d76801d482ef66d7ec1a866c5b4e8b7 (diff) | |
download | cpython-git-13502b19c64b2cd37b0b2b66dfcc26d0f028cd84.tar.gz |
Fix closes issue12438 - idlelib.PyShell's showformatwarning method was passing an incorrect arg.
Diffstat (limited to 'Lib/idlelib/PyShell.py')
-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 0c95df475c..9dd43cfa91 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 |