summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-07-06 11:04:43 (GMT)
committerGitHub <noreply@github.com>2023-07-06 11:04:43 (GMT)
commite229225fbaa2de58b5143fea25b9d47480393f56 (patch)
tree9272f1d2d80bc5fef3ed6153992ae56650d6b0d1
parent84cda268bd2c65c99d2ff69731d83e694146de70 (diff)
downloadcpython-e229225fbaa2de58b5143fea25b9d47480393f56.zip
cpython-e229225fbaa2de58b5143fea25b9d47480393f56.tar.gz
cpython-e229225fbaa2de58b5143fea25b9d47480393f56.tar.bz2
[3.12] Clarify state of CancelledError in doc (GH-106453) (#106454)
Clarify state of CancelledError in doc (GH-106453) This change makes it explicit that asyncio.CancelledError is not a subclass of Exception. (cherry picked from commit 12a98138083589314d3da14bc97f2d8517947437) Co-authored-by: Kristján Valur Jónsson <sweskman@gmail.com>
-rw-r--r--Doc/library/asyncio-exceptions.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/asyncio-exceptions.rst b/Doc/library/asyncio-exceptions.rst
index 9250f01..7ad9103 100644
--- a/Doc/library/asyncio-exceptions.rst
+++ b/Doc/library/asyncio-exceptions.rst
@@ -31,7 +31,7 @@ Exceptions
.. versionchanged:: 3.8
- :exc:`CancelledError` is now a subclass of :class:`BaseException`.
+ :exc:`CancelledError` is now a subclass of :class:`BaseException` rather than :class:`Exception`.
.. exception:: InvalidStateError