summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2011-07-04 00:40:39 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2011-07-04 00:40:39 (GMT)
commit10cdc63dd4ee3b00bce4a3cf34c1225b46254b7c (patch)
tree8b17611fd53cfec09617fc8ddb79d338eac8282b /Lib/idlelib
parentad1013c33895b731097c13fc157ac35645108972 (diff)
parentaa90e7c573ee2edd41a21d2a9f34e6f3d728f5e5 (diff)
downloadcpython-10cdc63dd4ee3b00bce4a3cf34c1225b46254b7c.zip
cpython-10cdc63dd4ee3b00bce4a3cf34c1225b46254b7c.tar.gz
cpython-10cdc63dd4ee3b00bce4a3cf34c1225b46254b7c.tar.bz2
Merge from 3.2. 'idle_formatwarning' is the correct method name.
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/PyShell.py2
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