[Python-checkins] cpython (3.2): Fix closes issue12438 - idlelib.PyShell's showformatwarning method was passing
georg.brandl
python-checkins at python.org
Sat Jul 9 10:58:08 CEST 2011
http://hg.python.org/cpython/rev/7dd9313c300b
changeset: 71272:7dd9313c300b
branch: 3.2
parent: 71205:861b483e88d9
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