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

Function wrapper

markdown/util.py:123–132  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

121 ```
122 """
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
135

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected