We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e8de439 + 9126c63 commit 5ef8e9dCopy full SHA for 5ef8e9d
sniffio/_impl.py
@@ -65,10 +65,6 @@ async def generic_sleep(seconds):
65
current_task = asyncio.Task.current_task # type: ignore[attr-defined]
66
try:
67
if current_task() is not None:
68
- if (3, 7) <= sys.version_info:
69
- # asyncio has contextvars support, and we're in a task, so
70
- # we can safely cache the sniffed value
71
- current_async_library_cvar.set("asyncio")
72
return "asyncio"
73
except RuntimeError:
74
pass
0 commit comments