Fix closes issue12438 - idlelib.PyShell's showformatwarning method was passing an incorrect arg.
This commit is contained in:
parent
7079240c4a
commit
aa90e7c573
|
@ -59,7 +59,7 @@ else:
|
||||||
file = warning_stream
|
file = warning_stream
|
||||||
try:
|
try:
|
||||||
file.write(warnings.formatwarning(message, category, filename,
|
file.write(warnings.formatwarning(message, category, filename,
|
||||||
lineno, file=file, line=line))
|
lineno, line=line))
|
||||||
except IOError:
|
except IOError:
|
||||||
pass ## file (probably __stderr__) is invalid, warning dropped.
|
pass ## file (probably __stderr__) is invalid, warning dropped.
|
||||||
warnings.showwarning = idle_showwarning
|
warnings.showwarning = idle_showwarning
|
||||||
|
|
Loading…
Reference in New Issue