From d3af92ecc2f41d920e9a66211e2ab631fc473163 Mon Sep 17 00:00:00 2001 From: Karthikeyan Singaravelan Date: Fri, 13 Mar 2020 21:02:38 +0530 Subject: [3.8] Doc: Fix grammar in PyErr_ResourceWarning (GH-18879) (GH-18976) (cherry picked from commit fdcd53f) Co-authored-by: Daniel Hahler --- Doc/c-api/exceptions.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst index 7300c80..85a3d94 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 -- cgit v0.12