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

Function deprecated_func

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected