From: Victor Stinner Date: Tue, 6 Jan 2015 00:03:58 +0000 (+0100) Subject: Issue #23046: Expose the BaseEventLoop class in the asyncio namespace X-Git-Tag: v3.4.3rc1~174 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8c1a4a2326e8a81bd4cc4fb81e51c003059cd687;p=python Issue #23046: Expose the BaseEventLoop class in the asyncio namespace --- diff --git a/Lib/asyncio/__init__.py b/Lib/asyncio/__init__.py index 3911fb4082..011466b3e0 100644 --- a/Lib/asyncio/__init__.py +++ b/Lib/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/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py index 684c9ecd49..59f31364ec 100644 --- a/Lib/asyncio/base_events.py +++ b/Lib/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.