diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-06-30 12:39:11 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-06-30 12:39:11 (GMT) |
commit | b75380f3336db6dae82e8f75a2a5b020ae8fd377 (patch) | |
tree | 8779c580d7fcc1e10467da07586d87e2116c6b58 /Lib/asyncio/base_events.py | |
parent | a6ec5ee3c8fcc7ca28db737a0ad60d4d63b116c0 (diff) | |
download | cpython-b75380f3336db6dae82e8f75a2a5b020ae8fd377.zip cpython-b75380f3336db6dae82e8f75a2a5b020ae8fd377.tar.gz cpython-b75380f3336db6dae82e8f75a2a5b020ae8fd377.tar.bz2 |
asyncio: sync with Tulip
- Sort imports
- Simplify/optimize iscoroutine(). Inline inspect.isgenerator(obj): replace it
with isinstance(obj, types.GeneratorType)
- CoroWrapper: check at runtime if Python has the yield-from bug #21209. If
Python has the bug, check if CoroWrapper.send() was called by yield-from to
decide if parameters must be unpacked or not.
- Fix "Task was destroyed but it is pending!" warning in
test_task_source_traceback()
Diffstat (limited to 'Lib/asyncio/base_events.py')
-rw-r--r-- | Lib/asyncio/base_events.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py index c42e7f9..b3d6e03 100644 --- a/Lib/asyncio/base_events.py +++ b/Lib/asyncio/base_events.py @@ -19,11 +19,11 @@ import concurrent.futures import heapq import inspect import logging +import os import socket import subprocess -import traceback import time -import os +import traceback import sys from . import coroutines |