]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.8] Doc: Fix grammar in PyErr_ResourceWarning (GH-18879) (GH-18976)
authorKarthikeyan Singaravelan <tir.karthi@gmail.com>
Fri, 13 Mar 2020 15:32:38 +0000 (21:02 +0530)
committerGitHub <noreply@github.com>
Fri, 13 Mar 2020 15:32:38 +0000 (21:02 +0530)
(cherry picked from commit fdcd53f)

Co-authored-by: Daniel Hahler <git@thequod.de>
Doc/c-api/exceptions.rst

index 7300c802e0817fc184046e39529566f687ec3b45..85a3d941ed8c11a05ba8c389e05b1cde2c96d200 100644 (file)
@@ -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