MCPcopy Index your code
hub / github.com/RustPython/RustPython / warn

Method warn

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

Source from the content-addressed store, hash-verified

1925 self.log(WARNING, msg, *args, **kwargs)
1926
1927 def warn(self, msg, *args, **kwargs):
1928 warnings.warn("The 'warn' method is deprecated, "
1929 "use 'warning' instead", DeprecationWarning, 2)
1930 self.warning(msg, *args, **kwargs)
1931
1932 def error(self, msg, *args, **kwargs):
1933 """

Callers

nothing calls this directly

Calls 2

warningMethod · 0.95
warnMethod · 0.45

Tested by

no test coverage detected