Asyncion-Dev docs: Fix the reference to sys.excepthook (GH-4414)
authorAshley Camba <ashwoods@gmail.com>
Fri, 24 Nov 2017 23:39:39 +0000 (00:39 +0100)
committerMariatta <Mariatta@users.noreply.github.com>
Fri, 24 Nov 2017 23:39:39 +0000 (15:39 -0800)
Doc/library/asyncio-dev.rst

index b2ad87b5d020572c70cb9abe661252b422973919..b9735de2078d18a3f6790be64c3ffd76e49605b9 100644 (file)
@@ -216,9 +216,9 @@ The fix is to call the :func:`ensure_future` function or the
 Detect exceptions never consumed
 --------------------------------
 
-Python usually calls :func:`sys.displayhook` on unhandled exceptions. If
+Python usually calls :func:`sys.excepthook` on unhandled exceptions. If
 :meth:`Future.set_exception` is called, but the exception is never consumed,
-:func:`sys.displayhook` is not called. Instead, :ref:`a log is emitted
+:func:`sys.excepthook` is not called. Instead, :ref:`a log is emitted
 <asyncio-logger>` when the future is deleted by the garbage collector, with the
 traceback where the exception was raised.