Rename the "asyncio" module to "trollius" to support Python 3.4
Add the following code at the top of your file to support Trollius and Tulip:
try:
# Use Trollius on Python <= 3.2
import trollius as asyncio
except ImportError:
# Use Tulip on Python 3.3, or builtin asyncio on Python 3.4+
import asyncio
This commit is contained in:
Reference in New Issue
Block a user