Function to format a warning the standard way.
(message, category, filename, lineno, line=None)
| 13 | _showwarnmsg_impl(msg) |
| 14 | |
| 15 | def formatwarning(message, category, filename, lineno, line=None): |
| 16 | """Function to format a warning the standard way.""" |
| 17 | msg = WarningMessage(message, category, filename, lineno, None, line) |
| 18 | return _formatwarnmsg_impl(msg) |
| 19 | |
| 20 | def _showwarnmsg_impl(msg): |
| 21 | file = msg.file |
nothing calls this directly
no test coverage detected