MCPcopy Index your code
hub / github.com/python/cpython / warn

Method warn

Lib/logging/__init__.py:1919–1922  ·  view source on GitHub ↗
(self, msg, *args, **kwargs)

Source from the content-addressed store, hash-verified

1917 self.log(WARNING, msg, *args, **kwargs)
1918
1919 def warn(self, msg, *args, **kwargs):
1920 warnings.warn("The 'warn' method is deprecated, "
1921 "use 'warning' instead", DeprecationWarning, 2)
1922 self.warning(msg, *args, **kwargs)
1923
1924 def error(self, msg, *args, **kwargs):
1925 """

Callers

nothing calls this directly

Calls 2

warningMethod · 0.95
warnMethod · 0.45

Tested by

no test coverage detected