MCPcopy Create free account
hub / github.com/StackStorm/st2 / new_func

Function new_func

st2common/st2common/util/deprecation.py:27–32  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

25 """
26
27 def new_func(*args, **kwargs):
28 warnings.warn(
29 "Call to deprecated function {}.".format(func.__name__),
30 category=DeprecationWarning,
31 )
32 return func(*args, **kwargs)
33
34 new_func.__name__ = func.__name__
35 new_func.__doc__ = func.__doc__

Callers

nothing calls this directly

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected