efficient vim config
[dotfiles/.git] / .local / lib / python2.7 / site-packages / trollius / __init__.py
1 """The trollius package, tracking PEP 3156."""
2
3 import sys
4
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.
8 try:
9     from . import selectors
10 except ImportError:
11     import selectors  # Will also be exported.
12
13 if sys.platform == 'win32':
14     # Similar thing for _overlapped.
15     try:
16         from . import _overlapped
17     except ImportError:
18         import _overlapped  # Will also be exported.
19
20 # This relies on each of the submodules having an __all__ variable.
21 from .base_events import *
22 from .coroutines import *
23 from .events import *
24 from .futures import *
25 from .locks import *
26 from .protocols import *
27 from .py33_exceptions import *
28 from .queues import *
29 from .streams import *
30 from .subprocess import *
31 from .tasks import *
32 from .transports import *
33
34 __all__ = (base_events.__all__ +
35            coroutines.__all__ +
36            events.__all__ +
37            py33_exceptions.__all__ +
38            futures.__all__ +
39            locks.__all__ +
40            protocols.__all__ +
41            queues.__all__ +
42            streams.__all__ +
43            subprocess.__all__ +
44            tasks.__all__ +
45            transports.__all__)
46
47 if sys.platform == 'win32':  # pragma: no cover
48     from .windows_events import *
49     __all__ += windows_events.__all__
50 else:
51     from .unix_events import *  # pragma: no cover
52     __all__ += unix_events.__all__
53
54 try:
55     from .py3_ssl import *
56     __all__ += py3_ssl.__all__
57 except ImportError:
58     # SSL support is optionnal
59     pass