diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-01-06 01:03:18 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-01-06 01:03:18 +0100 |
commit | 1ff9e5f34beddc511720de05000fb1fcf43e2d80 (patch) | |
tree | 18d2bb77d4d24bd34b79b01b161b73134bd9657f | |
parent | a735e9791e5f11cd761048fdd1ae664246221a0f (diff) | |
download | trollius-1ff9e5f34beddc511720de05000fb1fcf43e2d80.tar.gz |
Python issue #23046: Expose the BaseEventLoop class in the asyncio namespace
-rw-r--r-- | asyncio/__init__.py | 4 | ||||
-rw-r--r-- | asyncio/base_events.py | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/asyncio/__init__.py b/asyncio/__init__.py index 3911fb4..011466b 100644 --- a/asyncio/__init__.py +++ b/asyncio/__init__.py @@ -18,6 +18,7 @@ if sys.platform == 'win32': import _overlapped # Will also be exported. # This relies on each of the submodules having an __all__ variable. +from .base_events import * from .coroutines import * from .events import * from .futures import * @@ -29,7 +30,8 @@ from .subprocess import * from .tasks import * from .transports import * -__all__ = (coroutines.__all__ + +__all__ = (base_events.__all__ + + coroutines.__all__ + events.__all__ + futures.__all__ + locks.__all__ + diff --git a/asyncio/base_events.py b/asyncio/base_events.py index 684c9ec..59f3136 100644 --- a/asyncio/base_events.py +++ b/asyncio/base_events.py @@ -35,7 +35,7 @@ from .coroutines import coroutine from .log import logger -__all__ = ['BaseEventLoop', 'Server'] +__all__ = ['BaseEventLoop'] # Argument for default thread pool executor creation. |