Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8c1a4a2

Browse files
committed
Issue #23046: Expose the BaseEventLoop class in the asyncio namespace
1 parent 63b5558 commit 8c1a4a2

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Lib/asyncio/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import _overlapped # Will also be exported.
1919

2020
# This relies on each of the submodules having an __all__ variable.
21+
from .base_events import *
2122
from .coroutines import *
2223
from .events import *
2324
from .futures import *
@@ -29,7 +30,8 @@
2930
from .tasks import *
3031
from .transports import *
3132

32-
__all__ = (coroutines.__all__ +
33+
__all__ = (base_events.__all__ +
34+
coroutines.__all__ +
3335
events.__all__ +
3436
futures.__all__ +
3537
locks.__all__ +

Lib/asyncio/base_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
from .log import logger
3636

3737

38-
__all__ = ['BaseEventLoop', 'Server']
38+
__all__ = ['BaseEventLoop']
3939

4040

4141
# Argument for default thread pool executor creation.

0 commit comments

Comments
 (0)