MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / showwarning

Function showwarning

tools/python-3.11.9-amd64/Lib/warnings.py:10–13  ·  view source on GitHub ↗

Hook to write a warning to a file; replace if you like.

(message, category, filename, lineno, file=None, line=None)

Source from the content-addressed store, hash-verified

8 "resetwarnings", "catch_warnings"]
9
10def 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
15def formatwarning(message, category, filename, lineno, line=None):
16 """Function to format a warning the standard way."""

Callers

nothing calls this directly

Calls 2

WarningMessageClass · 0.85
_showwarnmsg_implFunction · 0.85

Tested by

no test coverage detected