[Python-checkins] cpython (3.4): Issue #23046: Expose the BaseEventLoop class in the asyncio namespace
victor.stinner
python-checkins at python.org
Tue Jan 6 01:05:48 CET 2015
https://hg.python.org/cpython/rev/ddf6b78faed9
changeset: 94031:ddf6b78faed9
branch: 3.4
parent: 94029:57a8befe75d4
user: Victor Stinner <victor.stinner at gmail.com>
date: Tue Jan 06 01:03:58 2015 +0100
summary:
Issue #23046: Expose the BaseEventLoop class in the asyncio namespace
files:
Lib/asyncio/__init__.py | 4 +++-
Lib/asyncio/base_events.py | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/Lib/asyncio/__init__.py b/Lib/asyncio/__init__.py
--- a/Lib/asyncio/__init__.py
+++ b/Lib/asyncio/__init__.py
@@ -18,6 +18,7 @@
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 .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
--- a/Lib/asyncio/base_events.py
+++ b/Lib/asyncio/base_events.py
@@ -35,7 +35,7 @@
from .log import logger
-__all__ = ['BaseEventLoop', 'Server']
+__all__ = ['BaseEventLoop']
# Argument for default thread pool executor creation.
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list