blob: 4c4ea20d12afc5c1cf81d6751299b14e5973d891 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
from . import compat
if compat.py3k:
import asyncio
from ._concurrency_py3k import await_only
from ._concurrency_py3k import await_fallback
from ._concurrency_py3k import greenlet
from ._concurrency_py3k import greenlet_spawn
else:
asyncio = None
greenlet = None
def await_only(thing):
return thing
def await_fallback(thing):
return thing
def greenlet_spawn(fn, *args, **kw):
raise ValueError("Cannot use this function in py2.")
|