1 """The trollius package, tracking PEP 3156."""
5 # The selectors module is in the stdlib in Python 3.4 but not in 3.3.
6 # Do this first, so the other submodules can use "from . import selectors".
7 # Prefer asyncio/selectors.py over the stdlib one, as ours may be newer.
9 from . import selectors
11 import selectors # Will also be exported.
13 if sys.platform == 'win32':
14 # Similar thing for _overlapped.
16 from . import _overlapped
18 import _overlapped # Will also be exported.
20 # This relies on each of the submodules having an __all__ variable.
21 from .base_events import *
22 from .coroutines import *
24 from .futures import *
26 from .protocols import *
27 from .py33_exceptions import *
29 from .streams import *
30 from .subprocess import *
32 from .transports import *
34 __all__ = (base_events.__all__ +
37 py33_exceptions.__all__ +
47 if sys.platform == 'win32': # pragma: no cover
48 from .windows_events import *
49 __all__ += windows_events.__all__
51 from .unix_events import * # pragma: no cover
52 __all__ += unix_events.__all__
55 from .py3_ssl import *
56 __all__ += py3_ssl.__all__
58 # SSL support is optionnal