Coverage for /pythoncovmergedfiles/medio/medio/usr/lib/python3.9/asyncio/__init__.py: 100%

18 statements  

« prev     ^ index     » next       coverage.py v7.3.1, created at 2023-09-25 06:05 +0000

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# Exposed for _asynciomodule.c to implement now deprecated 

24# Task.all_tasks() method. This function will be removed in 3.9. 

25from .tasks import _all_tasks_compat # NoQA 

26 

27__all__ = (base_events.__all__ + 

28 coroutines.__all__ + 

29 events.__all__ + 

30 exceptions.__all__ + 

31 futures.__all__ + 

32 locks.__all__ + 

33 protocols.__all__ + 

34 runners.__all__ + 

35 queues.__all__ + 

36 streams.__all__ + 

37 subprocess.__all__ + 

38 tasks.__all__ + 

39 threads.__all__ + 

40 transports.__all__) 

41 

42if sys.platform == 'win32': # pragma: no cover 

43 from .windows_events import * 

44 __all__ += windows_events.__all__ 

45else: 

46 from .unix_events import * # pragma: no cover 

47 __all__ += unix_events.__all__