From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 13 Mar 2020 15:33:04 +0000 (-0700) Subject: Doc: Fix grammar in PyErr_ResourceWarning (GH-18879) (GH-18963) X-Git-Tag: v3.7.8rc1~144 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=962c7220cf41cded256556b8c7973469f3f3c176;p=thirdparty%2FPython%2Fcpython.git Doc: Fix grammar in PyErr_ResourceWarning (GH-18879) (GH-18963) (cherry picked from commit fdcd53fe1a8a7f052d7217c36b2597df06b6e016) Co-authored-by: Daniel Hahler --- diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst index 2f58149c6cd1..19147fe53914 100644 --- a/Doc/c-api/exceptions.rst +++ b/Doc/c-api/exceptions.rst @@ -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