[Python-checkins] [doc] Fix typo c-api/exceptions.rst (GH-27847) (GH-27919)

ambv webhook-mailer at python.org
Mon Aug 23 16:09:56 EDT 2021


https://github.com/python/cpython/commit/834a2eb94517f9090b8c77feb968a4b95aa852b9
commit: 834a2eb94517f9090b8c77feb968a4b95aa852b9
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: ambv <lukasz at langa.pl>
date: 2021-08-23T22:09:52+02:00
summary:

[doc] Fix typo c-api/exceptions.rst (GH-27847) (GH-27919)

Co-authored-by: Tianqing Peng <pengtianqing at yimian.com.cn>
(cherry picked from commit dcbf7ff6a700b63e637a0445d68866670a398024)

Co-authored-by: Sunny Bean <ptq008 at gmail.com>

files:
M Doc/c-api/exceptions.rst

diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst
index 247b6d68eceae9..614eb245255418 100644
--- a/Doc/c-api/exceptions.rst
+++ b/Doc/c-api/exceptions.rst
@@ -100,7 +100,7 @@ For convenience, some of these functions will always return a
    This is the most common way to set the error indicator.  The first argument
    specifies the exception type; it is normally one of the standard exceptions,
    e.g. :c:data:`PyExc_RuntimeError`.  You need not increment its reference count.
-   The second argument is an error message; it is decoded from ``'utf-8``'.
+   The second argument is an error message; it is decoded from ``'utf-8'``.
 
 
 .. c:function:: void PyErr_SetObject(PyObject *type, PyObject *value)



More information about the Python-checkins mailing list