summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/futures.py
diff options
context:
space:
mode:
authorINADA Naoki <songofacandy@gmail.com>2016-10-15 06:39:19 (GMT)
committerINADA Naoki <songofacandy@gmail.com>2016-10-15 06:39:19 (GMT)
commit9f2ce2548107eedaf0970546a508c33d24920622 (patch)
tree2a410ccb15a3acb857985a3ce15e71fc7bdc3cda /Lib/asyncio/futures.py
parent479eb760f4dd5ae5cfc5ccf8a361cdea3d48624a (diff)
downloadcpython-9f2ce2548107eedaf0970546a508c33d24920622.zip
cpython-9f2ce2548107eedaf0970546a508c33d24920622.tar.gz
cpython-9f2ce2548107eedaf0970546a508c33d24920622.tar.bz2
Issue #28428: Rename _futures module to _asyncio.
It will have more speedup functions or classes other than asyncio.Future.
Diffstat (limited to 'Lib/asyncio/futures.py')
-rw-r--r--Lib/asyncio/futures.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/asyncio/futures.py b/Lib/asyncio/futures.py
index 7c5b1aa..87ae30a 100644
--- a/Lib/asyncio/futures.py
+++ b/Lib/asyncio/futures.py
@@ -432,18 +432,18 @@ def _copy_future_state(source, dest):
try:
- import _futures
+ import _asyncio
except ImportError:
pass
else:
- _futures._init_module(
+ _asyncio._init_module(
traceback.extract_stack,
events.get_event_loop,
_future_repr_info,
InvalidStateError,
CancelledError)
- Future = _futures.Future
+ Future = _asyncio.Future
def _chain_future(source, destination):