◐ Shell
reader mode source ↗
Skip to content
Closed
Hide file tree
Changes from all commits
File filter
Conversations
Jump to
Diff view
Apply and reload
Show whitespace
Diff view
Apply and reload
19 changes: 9 additions & 10 deletions Lib/asyncio/__init__.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
"""The asyncio package, tracking PEP 3156."""

# flake8: noqa
import sys

import selectors
# XXX RustPython TODO: _overlapped
if sys.platform == 'win32' and False:
# Similar thing for _overlapped.
try:
from . import _overlapped
except ImportError:
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 *
from .locks import *
from .protocols import *
Expand All @@ -25,11 +17,17 @@
from .streams import *
from .subprocess import *
from .tasks import *
from .transports import *

__all__ = (base_events.__all__ +
coroutines.__all__ +
events.__all__ +
futures.__all__ +
locks.__all__ +
protocols.__all__ +
Expand All @@ -38,6 +36,7 @@
streams.__all__ +
subprocess.__all__ +
tasks.__all__ +
transports.__all__)

if sys.platform == 'win32': # pragma: no cover
Expand Down
125 changes: 125 additions & 0 deletions Lib/asyncio/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
Loading
Toggle all file notes Toggle all file annotations