]> granicus.if.org Git - python/commit
asyncio: sync with Tulip
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 30 Jun 2014 12:39:47 +0000 (14:39 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 30 Jun 2014 12:39:47 +0000 (14:39 +0200)
commit91dd20ba6050181d454a6854137ea3534ac1f3d9
treed22c294ba022f197ac8883aa6d6440c07988cae9
parent9dd826b30b1d2cc5a68715699c3496dd162a89ae
parentb75380f3336db6dae82e8f75a2a5b020ae8fd377
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()