Merge from 3.2. 'idle_formatwarning' is the correct method name.
This commit is contained in:
commit
10cdc63dd4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue