From: Karthikeyan Singaravelan Date: Fri, 13 Mar 2020 15:32:38 +0000 (+0530) Subject: [3.8] Doc: Fix grammar in PyErr_ResourceWarning (GH-18879) (GH-18976) X-Git-Tag: v3.8.3rc1~103 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d3af92ecc2f41d920e9a66211e2ab631fc473163;p=thirdparty%2FPython%2Fcpython.git [3.8] Doc: Fix grammar in PyErr_ResourceWarning (GH-18879) (GH-18976) (cherry picked from commit fdcd53f) Co-authored-by: Daniel Hahler --- diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst index 7300c802e081..85a3d941ed8c 100644 --- a/Doc/c-api/exceptions.rst +++ b/Doc/c-api/exceptions.rst @@ -358,7 +358,7 @@ an error value). .. c:function:: int PyErr_ResourceWarning(PyObject *source, Py_ssize_t stack_level, const char *format, ...) Function similar to :c:func:`PyErr_WarnFormat`, but *category* is - :exc:`ResourceWarning` and pass *source* to :func:`warnings.WarningMessage`. + :exc:`ResourceWarning` and it passes *source* to :func:`warnings.WarningMessage`. .. versionadded:: 3.6