openmedialibrary_platform_d.../lib/python3.7/asyncio/__init__.py

44 lines
1.1 KiB
Python
Raw Normal View History

2016-02-06 09:36:57 +00:00
"""The asyncio package, tracking PEP 3156."""
2018-12-31 23:25:26 +00:00
# flake8: noqa
2016-02-06 09:36:57 +00:00
2018-12-31 23:25:26 +00:00
import sys
2016-02-06 09:36:57 +00:00
# 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 *
2018-12-31 23:25:26 +00:00
from .runners import *
2016-02-06 09:36:57 +00:00
from .queues import *
from .streams import *
from .subprocess import *
from .tasks import *
from .transports import *
2018-12-31 23:25:26 +00:00
# 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
2016-02-06 09:36:57 +00:00
__all__ = (base_events.__all__ +
coroutines.__all__ +
events.__all__ +
futures.__all__ +
locks.__all__ +
protocols.__all__ +
2018-12-31 23:25:26 +00:00
runners.__all__ +
2016-02-06 09:36:57 +00:00
queues.__all__ +
streams.__all__ +
subprocess.__all__ +
tasks.__all__ +
transports.__all__)
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__