MCPcopy Create free account
hub / github.com/Python-Markdown/markdown / deprecated_func

Function deprecated_func

markdown/util.py:125–131  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

123 def wrapper(func):
124 @wraps(func)
125 def deprecated_func(*args, **kwargs):
126 warnings.warn(
127 f"'{func.__name__}' is deprecated. {message}",
128 category=DeprecationWarning,
129 stacklevel=stacklevel
130 )
131 return func(*args, **kwargs)
132 return deprecated_func
133 return wrapper
134

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected