Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 27b7c7e

Browse files
author
Guido van Rossum
committed
Initial checkin of asyncio package (== Tulip, == PEP 3156).
1 parent 5b37f97 commit 27b7c7e

44 files changed

Lines changed: 16016 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Lib/asyncio/__init__.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
"""The asyncio 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+
try:
8+
import selectors # Will also be exported.
9+
except ImportError:
10+
from . import selectors
11+
12+
# This relies on each of the submodules having an __all__ variable.
13+
from .futures import *
14+
from .events import *
15+
from .locks import *
16+
from .transports import *
17+
from .protocols import *
18+
from .streams import *
19+
from .tasks import *
20+
21+
if sys.platform == 'win32': # pragma: no cover
22+
from .windows_events import *
23+
else:
24+
from .unix_events import * # pragma: no cover
25+
26+
27+
__all__ = (futures.__all__ +
28+
events.__all__ +
29+
locks.__all__ +
30+
transports.__all__ +
31+
protocols.__all__ +
32+
streams.__all__ +
33+
tasks.__all__)

0 commit comments

Comments
 (0)