summaryrefslogtreecommitdiff
path: root/Lib/asyncio
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-06-26 01:35:45 +0200
committerVictor Stinner <victor.stinner@gmail.com>2014-06-26 01:35:45 +0200
commit17b53f1301dfac6b57ac832e2db48ac2ba1d2f15 (patch)
tree33a9797602a351e9bbd3c7508b016cc692eabdfe /Lib/asyncio
parent72502c12a767cc1d419b8dd902dca9bf96c9f29f (diff)
downloadcpython-git-17b53f1301dfac6b57ac832e2db48ac2ba1d2f15.tar.gz
asyncio: Handle error handler: enhance formatting of the callback
Diffstat (limited to 'Lib/asyncio')
-rw-r--r--Lib/asyncio/events.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/asyncio/events.py b/Lib/asyncio/events.py
index 405448225e..58c6bd5320 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,