MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / new_func

Function new_func

tensorpack/utils/develop.py:141–144  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

139 def deprecated_inner(func):
140 @functools.wraps(func)
141 def new_func(*args, **kwargs):
142 name = "{} [{}]".format(func.__name__, get_location())
143 log_deprecated(name, text, eos, max_num_warnings=max_num_warnings)
144 return func(*args, **kwargs)
145 return new_func
146 return deprecated_inner
147

Callers

nothing calls this directly

Calls 3

get_locationFunction · 0.85
log_deprecatedFunction · 0.85
formatMethod · 0.80

Tested by

no test coverage detected