[Python-checkins] [3.8] Doc: Fix grammar in PyErr_ResourceWarning (GH-18879) (GH-18976)

Karthikeyan Singaravelan webhook-mailer at python.org
Fri Mar 13 11:32:42 EDT 2020


https://github.com/python/cpython/commit/d3af92ecc2f41d920e9a66211e2ab631fc473163
commit: d3af92ecc2f41d920e9a66211e2ab631fc473163
branch: 3.8
author: Karthikeyan Singaravelan <tir.karthi at gmail.com>
committer: GitHub <noreply at github.com>
date: 2020-03-13T21:02:38+05:30
summary:

[3.8] Doc: Fix grammar in PyErr_ResourceWarning (GH-18879) (GH-18976)

(cherry picked from commit fdcd53f)

Co-authored-by: Daniel Hahler <git at thequod.de>

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

diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst
index 7300c802e0817..85a3d941ed8c1 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
 



More information about the Python-checkins mailing list