Shofel2_T124_python/venv/lib/python3.10/site-packages/loguru/_contextvars.py

16 lines
321 B
Python
Raw Permalink Normal View History

2024-05-25 16:45:07 +00:00
import sys
def load_contextvar_class():
if sys.version_info >= (3, 7):
from contextvars import ContextVar
elif sys.version_info >= (3, 5, 3):
from aiocontextvars import ContextVar
else:
from contextvars import ContextVar
return ContextVar
ContextVar = load_contextvar_class()