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

Daniel Hahler webhook-mailer at python.org
Thu Mar 12 13:09:39 EDT 2020


https://github.com/python/cpython/commit/fdcd53fe1a8a7f052d7217c36b2597df06b6e016
commit: fdcd53fe1a8a7f052d7217c36b2597df06b6e016
branch: master
author: Daniel Hahler <git at thequod.de>
committer: GitHub <noreply at github.com>
date: 2020-03-12T22:39:30+05:30
summary:

Doc: Fix grammar in PyErr_ResourceWarning (GH-18879)

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

diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst
index b7175166a6f00..e7805ba143c58 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