From: Daniel Hahler Date: Thu, 12 Mar 2020 17:09:30 +0000 (+0100) Subject: Doc: Fix grammar in PyErr_ResourceWarning (GH-18879) X-Git-Tag: v3.9.0a5~87 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fdcd53f;p=thirdparty%2FPython%2Fcpython.git Doc: Fix grammar in PyErr_ResourceWarning (GH-18879) --- diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst index b7175166a6f0..e7805ba143c5 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