diff --git a/Log4p/DecoratorsTools.py b/Log4p/DecoratorsTools.py deleted file mode 100644 index 82ea6bb..0000000 --- a/Log4p/DecoratorsTools.py +++ /dev/null @@ -1,11 +0,0 @@ -import warnings - -def deprecated(use_func, d_version): - def decorator(func): - async def wrapper(*args, **kwargs): - warnings.warn(f"The '{func.__name__}' function is deprecated, " - f"use '{use_func}' instead. Deprecated in version {d_version}.", - DeprecationWarning, stacklevel=2) - return await func(*args, **kwargs) - return wrapper - return decorator