]> granicus.if.org Git - python/commitdiff
Issue #23046: Expose the BaseEventLoop class in the asyncio namespace
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 6 Jan 2015 00:03:58 +0000 (01:03 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 6 Jan 2015 00:03:58 +0000 (01:03 +0100)
Lib/asyncio/__init__.py
Lib/asyncio/base_events.py

index 3911fb40829577edfb2aeea20436ebf17067e370..011466b3e0dc8f3c7d0090d5bd1af1d3cf983be7 100644 (file)
@@ -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__ +
index 684c9ecd496b14dd7eb55022cec46524e9e5b48d..59f31364eccd6aa2162e809b2f519e57bc94a616 100644 (file)
@@ -35,7 +35,7 @@ from .coroutines import coroutine
 from .log import logger
 
 
-__all__ = ['BaseEventLoop', 'Server']
+__all__ = ['BaseEventLoop']
 
 
 # Argument for default thread pool executor creation.