diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-05-20 15:28:32 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-05-20 15:28:32 +0200 |
commit | 6dcf596ea618c68fa4b8a5883292426cbe926be8 (patch) | |
tree | 4b670ce64eb1503579f5c0aa76698417a3ddc398 | |
parent | 288d183cfac1819db80199db467d3762ee95131d (diff) | |
download | trollius-6dcf596ea618c68fa4b8a5883292426cbe926be8.tar.gz |
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
-rw-r--r-- | trollius/__init__.py (renamed from asyncio/__init__.py) | 0 | ||||
-rw-r--r-- | trollius/base_events.py (renamed from asyncio/base_events.py) | 0 | ||||
-rw-r--r-- | trollius/base_subprocess.py (renamed from asyncio/base_subprocess.py) | 0 | ||||
-rw-r--r-- | trollius/compat.py (renamed from asyncio/compat.py) | 0 | ||||
-rw-r--r-- | trollius/constants.py (renamed from asyncio/constants.py) | 0 | ||||
-rw-r--r-- | trollius/coroutines.py (renamed from asyncio/coroutines.py) | 0 | ||||
-rw-r--r-- | trollius/events.py (renamed from asyncio/events.py) | 0 | ||||
-rw-r--r-- | trollius/executor.py (renamed from asyncio/executor.py) | 0 | ||||
-rw-r--r-- | trollius/futures.py (renamed from asyncio/futures.py) | 0 | ||||
-rw-r--r-- | trollius/locks.py (renamed from asyncio/locks.py) | 0 | ||||
-rw-r--r-- | trollius/log.py (renamed from asyncio/log.py) | 0 | ||||
-rw-r--r-- | trollius/proactor_events.py (renamed from asyncio/proactor_events.py) | 0 | ||||
-rw-r--r-- | trollius/protocols.py (renamed from asyncio/protocols.py) | 0 | ||||
-rw-r--r-- | trollius/py27_weakrefset.py (renamed from asyncio/py27_weakrefset.py) | 0 | ||||
-rw-r--r-- | trollius/py33_exceptions.py (renamed from asyncio/py33_exceptions.py) | 0 | ||||
-rw-r--r-- | trollius/py33_winapi.py (renamed from asyncio/py33_winapi.py) | 0 | ||||
-rw-r--r-- | trollius/py3_ssl.py (renamed from asyncio/py3_ssl.py) | 0 | ||||
-rw-r--r-- | trollius/queues.py (renamed from asyncio/queues.py) | 0 | ||||
-rw-r--r-- | trollius/selector_events.py (renamed from asyncio/selector_events.py) | 0 | ||||
-rw-r--r-- | trollius/selectors.py (renamed from asyncio/selectors.py) | 0 | ||||
-rw-r--r-- | trollius/streams.py (renamed from asyncio/streams.py) | 0 | ||||
-rw-r--r-- | trollius/subprocess.py (renamed from asyncio/subprocess.py) | 0 | ||||
-rw-r--r-- | trollius/tasks.py (renamed from asyncio/tasks.py) | 0 | ||||
-rw-r--r-- | trollius/test_support.py (renamed from asyncio/test_support.py) | 0 | ||||
-rw-r--r-- | trollius/test_utils.py (renamed from asyncio/test_utils.py) | 0 | ||||
-rw-r--r-- | trollius/time_monotonic.py (renamed from asyncio/time_monotonic.py) | 0 | ||||
-rw-r--r-- | trollius/transports.py (renamed from asyncio/transports.py) | 0 | ||||
-rw-r--r-- | trollius/unix_events.py (renamed from asyncio/unix_events.py) | 0 | ||||
-rw-r--r-- | trollius/windows_events.py (renamed from asyncio/windows_events.py) | 0 | ||||
-rw-r--r-- | trollius/windows_utils.py (renamed from asyncio/windows_utils.py) | 0 |
30 files changed, 0 insertions, 0 deletions
diff --git a/asyncio/__init__.py b/trollius/__init__.py index db688e7..db688e7 100644 --- a/asyncio/__init__.py +++ b/trollius/__init__.py diff --git a/asyncio/base_events.py b/trollius/base_events.py index 4d5d831..4d5d831 100644 --- a/asyncio/base_events.py +++ b/trollius/base_events.py diff --git a/asyncio/base_subprocess.py b/trollius/base_subprocess.py index 7d37ae3..7d37ae3 100644 --- a/asyncio/base_subprocess.py +++ b/trollius/base_subprocess.py diff --git a/asyncio/compat.py b/trollius/compat.py index b93070d..b93070d 100644 --- a/asyncio/compat.py +++ b/trollius/compat.py diff --git a/asyncio/constants.py b/trollius/constants.py index f9e1232..f9e1232 100644 --- a/asyncio/constants.py +++ b/trollius/constants.py diff --git a/asyncio/coroutines.py b/trollius/coroutines.py index a13f6b7..a13f6b7 100644 --- a/asyncio/coroutines.py +++ b/trollius/coroutines.py diff --git a/asyncio/events.py b/trollius/events.py index 37a8647..37a8647 100644 --- a/asyncio/events.py +++ b/trollius/events.py diff --git a/asyncio/executor.py b/trollius/executor.py index 9e7fdd7..9e7fdd7 100644 --- a/asyncio/executor.py +++ b/trollius/executor.py diff --git a/asyncio/futures.py b/trollius/futures.py index d587271..d587271 100644 --- a/asyncio/futures.py +++ b/trollius/futures.py diff --git a/asyncio/locks.py b/trollius/locks.py index 07a174c..07a174c 100644 --- a/asyncio/locks.py +++ b/trollius/locks.py diff --git a/asyncio/log.py b/trollius/log.py index 23a7074..23a7074 100644 --- a/asyncio/log.py +++ b/trollius/log.py diff --git a/asyncio/proactor_events.py b/trollius/proactor_events.py index ab84a9e..ab84a9e 100644 --- a/asyncio/proactor_events.py +++ b/trollius/proactor_events.py diff --git a/asyncio/protocols.py b/trollius/protocols.py index d218f5c..d218f5c 100644 --- a/asyncio/protocols.py +++ b/trollius/protocols.py diff --git a/asyncio/py27_weakrefset.py b/trollius/py27_weakrefset.py index 990c3a6..990c3a6 100644 --- a/asyncio/py27_weakrefset.py +++ b/trollius/py27_weakrefset.py diff --git a/asyncio/py33_exceptions.py b/trollius/py33_exceptions.py index a35ff2e..a35ff2e 100644 --- a/asyncio/py33_exceptions.py +++ b/trollius/py33_exceptions.py diff --git a/asyncio/py33_winapi.py b/trollius/py33_winapi.py index 3852011..3852011 100644 --- a/asyncio/py33_winapi.py +++ b/trollius/py33_winapi.py diff --git a/asyncio/py3_ssl.py b/trollius/py3_ssl.py index 378d458..378d458 100644 --- a/asyncio/py3_ssl.py +++ b/trollius/py3_ssl.py diff --git a/asyncio/queues.py b/trollius/queues.py index 4e4650c..4e4650c 100644 --- a/asyncio/queues.py +++ b/trollius/queues.py diff --git a/asyncio/selector_events.py b/trollius/selector_events.py index 39e8ab8..39e8ab8 100644 --- a/asyncio/selector_events.py +++ b/trollius/selector_events.py diff --git a/asyncio/selectors.py b/trollius/selectors.py index ffd7555..ffd7555 100644 --- a/asyncio/selectors.py +++ b/trollius/selectors.py diff --git a/asyncio/streams.py b/trollius/streams.py index 0860700..0860700 100644 --- a/asyncio/streams.py +++ b/trollius/streams.py diff --git a/asyncio/subprocess.py b/trollius/subprocess.py index 5d08c01..5d08c01 100644 --- a/asyncio/subprocess.py +++ b/trollius/subprocess.py diff --git a/asyncio/tasks.py b/trollius/tasks.py index 411182d..411182d 100644 --- a/asyncio/tasks.py +++ b/trollius/tasks.py diff --git a/asyncio/test_support.py b/trollius/test_support.py index 5716a03..5716a03 100644 --- a/asyncio/test_support.py +++ b/trollius/test_support.py diff --git a/asyncio/test_utils.py b/trollius/test_utils.py index ea46d93..ea46d93 100644 --- a/asyncio/test_utils.py +++ b/trollius/test_utils.py diff --git a/asyncio/time_monotonic.py b/trollius/time_monotonic.py index 18bee66..18bee66 100644 --- a/asyncio/time_monotonic.py +++ b/trollius/time_monotonic.py diff --git a/asyncio/transports.py b/trollius/transports.py index 61645c2..61645c2 100644 --- a/asyncio/transports.py +++ b/trollius/transports.py diff --git a/asyncio/unix_events.py b/trollius/unix_events.py index 758c7d5..758c7d5 100644 --- a/asyncio/unix_events.py +++ b/trollius/unix_events.py diff --git a/asyncio/windows_events.py b/trollius/windows_events.py index 6fb4c0b..6fb4c0b 100644 --- a/asyncio/windows_events.py +++ b/trollius/windows_events.py diff --git a/asyncio/windows_utils.py b/trollius/windows_utils.py index b5a6ddb..b5a6ddb 100644 --- a/asyncio/windows_utils.py +++ b/trollius/windows_utils.py |