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

Method warning

Lib/logging/__init__.py:1913–1917  ·  view source on GitHub ↗

Delegate a warning call to the underlying logger.

(self, msg, *args, **kwargs)

Source from the content-addressed store, hash-verified

1911 self.log(INFO, msg, *args, **kwargs)
1912
1913 def warning(self, msg, *args, **kwargs):
1914 """
1915 Delegate a warning call to the underlying logger.
1916 """
1917 self.log(WARNING, msg, *args, **kwargs)
1918
1919 def warn(self, msg, *args, **kwargs):
1920 warnings.warn("The 'warn' method is deprecated, "

Callers 2

warnMethod · 0.95
test_flatMethod · 0.95

Calls 1

logMethod · 0.95

Tested by 1

test_flatMethod · 0.76