Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
allendowney
GitHub Repository: allendowney/cpython
Path: blob/main/Lib/asyncio/__init__.py
12 views
1
"""The asyncio package, tracking PEP 3156."""
2
3
# flake8: noqa
4
5
import sys
6
7
# This relies on each of the submodules having an __all__ variable.
8
from .base_events import *
9
from .coroutines import *
10
from .events import *
11
from .exceptions import *
12
from .futures import *
13
from .locks import *
14
from .protocols import *
15
from .runners import *
16
from .queues import *
17
from .streams import *
18
from .subprocess import *
19
from .tasks import *
20
from .taskgroups import *
21
from .timeouts import *
22
from .threads import *
23
from .transports import *
24
25
__all__ = (base_events.__all__ +
26
coroutines.__all__ +
27
events.__all__ +
28
exceptions.__all__ +
29
futures.__all__ +
30
locks.__all__ +
31
protocols.__all__ +
32
runners.__all__ +
33
queues.__all__ +
34
streams.__all__ +
35
subprocess.__all__ +
36
tasks.__all__ +
37
taskgroups.__all__ +
38
threads.__all__ +
39
timeouts.__all__ +
40
transports.__all__)
41
42
if sys.platform == 'win32': # pragma: no cover
43
from .windows_events import *
44
__all__ += windows_events.__all__
45
else:
46
from .unix_events import * # pragma: no cover
47
__all__ += unix_events.__all__
48
49