summaryrefslogtreecommitdiff
path: root/Lib/idlelib/PyShell.py
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2011-07-03 17:38:53 -0700
committerSenthil Kumaran <senthil@uthcode.com>2011-07-03 17:38:53 -0700
commit13502b19c64b2cd37b0b2b66dfcc26d0f028cd84 (patch)
treedd079463f321db2b2caa7d7c0ff606a8f54c3fed /Lib/idlelib/PyShell.py
parente04d256c2d76801d482ef66d7ec1a866c5b4e8b7 (diff)
downloadcpython-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.py2
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