]> granicus.if.org Git - python/commit
asyncio: Coroutine objects are now rejected with a TypeError by the following
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 20 Nov 2014 14:03:52 +0000 (15:03 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 20 Nov 2014 14:03:52 +0000 (15:03 +0100)
commit2d99d93d11e7908a51fde8de27b7a3584d23cf46
treee52008207c7b1af6298fd742551508e5f0215ec7
parentc1ad35aae84d5cda4f73696844a87d7764224150
asyncio: Coroutine objects are now rejected with a TypeError by the following
functions:

* add_signal_handler()
* call_at()
* call_later()
* call_soon()
* call_soon_threadsafe()
* run_in_executor()

Fix also the error message of add_signal_handler() (fix the name of the
function).
Lib/asyncio/base_events.py
Lib/asyncio/unix_events.py
Lib/test/test_asyncio/test_base_events.py
Lib/test/test_asyncio/test_unix_events.py