]> granicus.if.org Git - python/commit
asyncio: Enhance BaseProactorEventLoop._loop_self_reading()
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 21 Jan 2015 22:38:37 +0000 (23:38 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 21 Jan 2015 22:38:37 +0000 (23:38 +0100)
commitcd0f7f9832e6aa8363f85152810738111b9a181d
treefb93436a2bd38cd77a2f4d22ab243449e207325b
parentb5684c48e1e37ff8fb1cf6cc42cae31bd2da37d8
asyncio: Enhance BaseProactorEventLoop._loop_self_reading()

* Handle correctly CancelledError: just exit
* On error, log the exception and exit

Don't try to close the event loop, it is probably running and so it cannot be
closed.
Lib/asyncio/proactor_events.py
Lib/test/test_asyncio/test_proactor_events.py