[Python-checkins] cpython (3.2): Fix closes issue12438 - idlelib.PyShell's showformatwarning method was passing
senthil.kumaran
python-checkins at python.org
Mon Jul 4 02:40:56 CEST 2011
http://hg.python.org/cpython/rev/e9c406a53972
changeset: 71171:e9c406a53972
branch: 3.2
parent: 71168:6886e0bf29bc
user: Senthil Kumaran <senthil at uthcode.com>
date: Sun Jul 03 17:39:20 2011 -0700
summary:
Fix closes issue12438 - idlelib.PyShell's showformatwarning method was passing an incorrect arg.
files:
Lib/idlelib/PyShell.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list