summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAshley Camba <ashwoods@gmail.com>2017-11-24 23:39:39 (GMT)
committerMariatta <Mariatta@users.noreply.github.com>2017-11-24 23:39:39 (GMT)
commitf8802d80b32dbc64f9e0e72270695d24ac50e246 (patch)
tree4a67763a68bb60c6fe0f45eb94e6892d2607d834 /Doc
parentf04ebe2a4d68b194deeb438e9185efdafc10a832 (diff)
downloadcpython-f8802d80b32dbc64f9e0e72270695d24ac50e246.zip
cpython-f8802d80b32dbc64f9e0e72270695d24ac50e246.tar.gz
cpython-f8802d80b32dbc64f9e0e72270695d24ac50e246.tar.bz2
Asyncion-Dev docs: Fix the reference to sys.excepthook (GH-4414)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/asyncio-dev.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/asyncio-dev.rst b/Doc/library/asyncio-dev.rst
index b2ad87b..b9735de 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.