From 8108e1fc85bbff121bc641fc1d5e1ec02ab1020d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=99=E5=AE=81=E5=A8=9C?= <3072252442@qq.com> Date: Sun, 17 Mar 2024 14:08:09 +0000 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=20Log4p/DecoratorsTools.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Log4p/DecoratorsTools.py | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 Log4p/DecoratorsTools.py 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