mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix closes issue12438 - idlelib.PyShell's showformatwarning method was passing an incorrect arg.
This commit is contained in:
parent
e04d256c2d
commit
13502b19c6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue