venv added, updated
This commit is contained in:
16
myenv/lib/python3.12/site-packages/authlib/deprecate.py
Normal file
16
myenv/lib/python3.12/site-packages/authlib/deprecate.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import warnings
|
||||
|
||||
|
||||
class AuthlibDeprecationWarning(DeprecationWarning):
|
||||
pass
|
||||
|
||||
|
||||
warnings.simplefilter('always', AuthlibDeprecationWarning)
|
||||
|
||||
|
||||
def deprecate(message, version=None, link_uid=None, link_file=None):
|
||||
if version:
|
||||
message += f'\nIt will be compatible before version {version}.'
|
||||
if link_uid and link_file:
|
||||
message += f'\nRead more <https://git.io/{link_uid}#file-{link_file}-md>'
|
||||
warnings.warn(AuthlibDeprecationWarning(message), stacklevel=2)
|
||||
Reference in New Issue
Block a user