Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aa90e7c

Browse files
committed
Fix closes issue12438 - idlelib.PyShell's showformatwarning method was passing an incorrect arg.
1 parent 7079240 commit aa90e7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/idlelib/PyShell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def idle_showwarning(message, category, filename, lineno,
5959
file = warning_stream
6060
try:
6161
file.write(warnings.formatwarning(message, category, filename,
62-
lineno, file=file, line=line))
62+
lineno, line=line))
6363
except IOError:
6464
pass ## file (probably __stderr__) is invalid, warning dropped.
6565
warnings.showwarning = idle_showwarning

0 commit comments

Comments
 (0)