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

Method warn

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

Source from the content-addressed store, hash-verified

1534 self._log(WARNING, msg, args, **kwargs)
1535
1536 def warn(self, msg, *args, **kwargs):
1537 warnings.warn("The 'warn' method is deprecated, "
1538 "use 'warning' instead", DeprecationWarning, 2)
1539 self.warning(msg, *args, **kwargs)
1540
1541 def error(self, msg, *args, **kwargs):
1542 """

Callers 15

fileMethod · 0.45
wrapperFunction · 0.45
patternMethod · 0.45
get_methodsMethod · 0.45
fallback_getpassFunction · 0.45
getpreferredencodingFunction · 0.45
escape_decodeFunction · 0.45
utcfromtimestampMethod · 0.45
utcnowMethod · 0.45
_as_int2Function · 0.45
master_openFunction · 0.45

Calls 1

warningMethod · 0.95

Tested by 15

test_warningsMethod · 0.36
warn_futureMethod · 0.36
raise_wrong_messageMethod · 0.36
_runtime_warnMethod · 0.36
warnfunFunction · 0.36
test_deprecationMethod · 0.36
test_importMethod · 0.36
test_warningMethod · 0.36
test_ignoreMethod · 0.36
test_defaultMethod · 0.36