]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Doc: Fix grammar in PyErr_ResourceWarning (GH-18879) (GH-18963)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 13 Mar 2020 15:33:04 +0000 (08:33 -0700)
committerGitHub <noreply@github.com>
Fri, 13 Mar 2020 15:33:04 +0000 (21:03 +0530)
(cherry picked from commit fdcd53fe1a8a7f052d7217c36b2597df06b6e016)

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

index 2f58149c6cd1425b0cd1342436271f17a03ad089..19147fe53914ec2998bd0fd8b12eed29c0a0aa44 100644 (file)
@@ -355,7 +355,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