From: Benjamin Peterson Date: Mon, 2 May 2022 19:43:52 +0000 (-0600) Subject: Fix duplicate word. (GH-92182) X-Git-Tag: v3.11.0b1~121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd57fe1dd7675c53e69af33b511786127ae8d25c;p=thirdparty%2FPython%2Fcpython.git Fix duplicate word. (GH-92182) --- diff --git a/Doc/library/asyncio-runner.rst b/Doc/library/asyncio-runner.rst index a526b459f747..d0df1db892f9 100644 --- a/Doc/library/asyncio-runner.rst +++ b/Doc/library/asyncio-runner.rst @@ -139,7 +139,7 @@ To mitigate this issue, :mod:`asyncio` handles :const:`signal.SIGINT` as follows execution. 3. When :const:`signal.SIGINT` is raised by :kbd:`Ctrl-C`, the custom signal handler cancels the main task by calling :meth:`asyncio.Task.cancel` which raises - :exc:`asyncio.CancelledError` inside the the main task. This causes the Python stack + :exc:`asyncio.CancelledError` inside the main task. This causes the Python stack to unwind, ``try/except`` and ``try/finally`` blocks can be used for resource cleanup. After the main task is cancelled, :meth:`asyncio.Runner.run` raises :exc:`KeyboardInterrupt`.