diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-06-25 23:36:47 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-06-25 23:36:47 (GMT) |
commit | 67825605c8fa49532974fba00b35b7ff08f35280 (patch) | |
tree | 478a00e03ff809cf6df9ad20e165d59b499a29dc /Lib | |
parent | f5434f73d7021c992ae03844bdd75e9b0c96c101 (diff) | |
parent | 17b53f1301dfac6b57ac832e2db48ac2ba1d2f15 (diff) | |
download | cpython-67825605c8fa49532974fba00b35b7ff08f35280.zip cpython-67825605c8fa49532974fba00b35b7ff08f35280.tar.gz cpython-67825605c8fa49532974fba00b35b7ff08f35280.tar.bz2 |
(Merge 3.4) asyncio: Handle error handler: enhance formatting of the callback
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/asyncio/events.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/asyncio/events.py b/Lib/asyncio/events.py index 4054482..58c6bd5 100644 --- a/Lib/asyncio/events.py +++ b/Lib/asyncio/events.py @@ -89,8 +89,8 @@ class Handle: try: self._callback(*self._args) except Exception as exc: - msg = 'Exception in callback {}{!r}'.format(self._callback, - self._args) + cb = _format_callback(self._callback, self._args) + msg = 'Exception in callback {}'.format(cb) self._loop.call_exception_handler({ 'message': msg, 'exception': exc, |