MCPcopy Index your code
hub / github.com/fluentpython/example-code-2e / depr

Function depr

21-async/mojifinder/bottle.py:150–151  ·  view source on GitHub ↗
(message, hard=False)

Source from the content-addressed store, hash-verified

148# And yes, I know PEP-8, but sometimes a lower-case classname makes more sense.
149
150def depr(message, hard=False):
151 warnings.warn(message, DeprecationWarning, stacklevel=3)
152
153def makelist(data): # This is just to handy
154 if isinstance(data, (tuple, list, set, dict)): return list(data)

Callers 15

__call__Method · 0.85
_contextMethod · 0.85
mountMethod · 0.85
local_propertyFunction · 0.85
__getitem__Method · 0.85
__getattr__Method · 0.85
__setattr__Method · 0.85
__call__Method · 0.85
__init__Method · 0.85
__getattr__Method · 0.85
__setattr__Method · 0.85
__call__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected