Hook to write a warning to a file; replace if you like.
(message, category, filename, lineno, file=None, line=None)
| 8 | "resetwarnings", "catch_warnings"] |
| 9 | |
| 10 | def showwarning(message, category, filename, lineno, file=None, line=None): |
| 11 | """Hook to write a warning to a file; replace if you like.""" |
| 12 | msg = WarningMessage(message, category, filename, lineno, file, line) |
| 13 | _showwarnmsg_impl(msg) |
| 14 | |
| 15 | def formatwarning(message, category, filename, lineno, line=None): |
| 16 | """Function to format a warning the standard way.""" |
nothing calls this directly
no test coverage detected