mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #28428: Rename _futures module to _asyncio.
It will have more speedup functions or classes other than asyncio.Future.
This commit is contained in:
parent
479eb760f4
commit
9f2ce25481
6 changed files with 29 additions and 29 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue