[Python-checkins] Asyncion-Dev docs: Fix the reference to sys.excepthook (GH-4414)

Mariatta webhook-mailer at python.org
Fri Nov 24 18:39:42 EST 2017


https://github.com/python/cpython/commit/f8802d80b32dbc64f9e0e72270695d24ac50e246
commit: f8802d80b32dbc64f9e0e72270695d24ac50e246
branch: master
author: Ashley Camba <ashwoods at gmail.com>
committer: Mariatta <Mariatta at users.noreply.github.com>
date: 2017-11-24T15:39:39-08:00
summary:

Asyncion-Dev docs: Fix the reference to sys.excepthook (GH-4414)

files:
M Doc/library/asyncio-dev.rst

diff --git a/Doc/library/asyncio-dev.rst b/Doc/library/asyncio-dev.rst
index b2ad87b5d02..b9735de2078 100644
--- a/Doc/library/asyncio-dev.rst
+++ b/Doc/library/asyncio-dev.rst
@@ -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.
 



More information about the Python-checkins mailing list