• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1"""The asyncio package, tracking PEP 3156."""
2
3# flake8: noqa
4
5import sys
6
7# This relies on each of the submodules having an __all__ variable.
8from .base_events import *
9from .coroutines import *
10from .events import *
11from .exceptions import *
12from .futures import *
13from .locks import *
14from .protocols import *
15from .runners import *
16from .queues import *
17from .streams import *
18from .subprocess import *
19from .tasks import *
20from .threads import *
21from .transports import *
22
23__all__ = (base_events.__all__ +
24           coroutines.__all__ +
25           events.__all__ +
26           exceptions.__all__ +
27           futures.__all__ +
28           locks.__all__ +
29           protocols.__all__ +
30           runners.__all__ +
31           queues.__all__ +
32           streams.__all__ +
33           subprocess.__all__ +
34           tasks.__all__ +
35           threads.__all__ +
36           transports.__all__)
37
38if sys.platform == 'win32':  # pragma: no cover
39    from .windows_events import *
40    __all__ += windows_events.__all__
41else:
42    from .unix_events import *  # pragma: no cover
43    __all__ += unix_events.__all__
44