__init__.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. """The asyncio package, tracking PEP 3156."""
  2. # flake8: noqa
  3. import sys
  4. # This relies on each of the submodules having an __all__ variable.
  5. from .base_events import *
  6. from .coroutines import *
  7. from .events import *
  8. from .futures import *
  9. from .locks import *
  10. from .protocols import *
  11. from .runners import *
  12. from .queues import *
  13. from .streams import *
  14. from .subprocess import *
  15. from .tasks import *
  16. from .transports import *
  17. # Exposed for _asynciomodule.c to implement now deprecated
  18. # Task.all_tasks() method. This function will be removed in 3.9.
  19. from .tasks import _all_tasks_compat # NoQA
  20. __all__ = (base_events.__all__ +
  21. coroutines.__all__ +
  22. events.__all__ +
  23. futures.__all__ +
  24. locks.__all__ +
  25. protocols.__all__ +
  26. runners.__all__ +
  27. queues.__all__ +
  28. streams.__all__ +
  29. subprocess.__all__ +
  30. tasks.__all__ +
  31. transports.__all__)
  32. if sys.platform == 'win32': # pragma: no cover
  33. from .windows_events import *
  34. __all__ += windows_events.__all__
  35. else:
  36. from .unix_events import * # pragma: no cover
  37. __all__ += unix_events.__all__