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:
Victor Stinner
2014-05-20 15:28:32 +02:00
parent 45f25dfd57
commit 867b12b05c
30 changed files with 0 additions and 0 deletions