__init__.py 1.14 KB
Newer Older
1 2
"""The asyncio package, tracking PEP 3156."""

3 4
# flake8: noqa

5 6 7
import sys

# 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 .futures import *
12 13
from .locks import *
from .protocols import *
14
from .runners import *
15
from .queues import *
16
from .streams import *
17
from .subprocess import *
18
from .tasks import *
19
from .transports import *
20

21 22 23 24
# Exposed for _asynciomodule.c to implement now deprecated
# Task.all_tasks() method.  This function will be removed in 3.9.
from .tasks import _all_tasks_compat  # NoQA

25 26
__all__ = (base_events.__all__ +
           coroutines.__all__ +
27
           events.__all__ +
28
           futures.__all__ +
29 30
           locks.__all__ +
           protocols.__all__ +
31
           runners.__all__ +
32
           queues.__all__ +
33
           streams.__all__ +
34
           subprocess.__all__ +
35 36
           tasks.__all__ +
           transports.__all__)
37 38 39 40 41 42 43

if sys.platform == 'win32':  # pragma: no cover
    from .windows_events import *
    __all__ += windows_events.__all__
else:
    from .unix_events import *  # pragma: no cover
    __all__ += unix_events.__all__