]> granicus.if.org Git - python/commitdiff
Asyncion-Dev docs: Fix the reference to sys.excepthook (GH-4414) (GH-4549)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 25 Nov 2017 00:07:37 +0000 (16:07 -0800)
committerMariatta <Mariatta@users.noreply.github.com>
Sat, 25 Nov 2017 00:07:37 +0000 (16:07 -0800)
(cherry picked from commit f8802d80b32dbc64f9e0e72270695d24ac50e246)

Doc/library/asyncio-dev.rst

index 1838eb95a7d52230336a56faa1c992003af8e8b0..e2ad3eb0196c93cb84ad59f5ceac563c9045f97d 100644 (file)
@@ -209,9 +209,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.