8000 Doc: Fix grammar in PyErr_ResourceWarning (GH-18879) (GH-18963) · python/cpython@962c722 · GitHub
[go: up one dir, main page]

Skip to content

Commit 962c722

Browse files
Doc: Fix grammar in PyErr_ResourceWarning (GH-18879) (GH-18963)
(cherry picked from commit fdcd53f) Co-authored-by: Daniel Hahler <git@thequod.de>
1 parent c05e491 commit 962c722

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/c-api/exceptions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ an error value).
355355
.. c:function:: int PyErr_ResourceWarning(PyObject *source, Py_ssize_t stack_level, const char *format, ...)
356356
357357
Function similar to :c:func:`PyErr_WarnFormat`, but *category* is
358-
:exc:`ResourceWarning` and pass *source* to :func:`warnings.WarningMessage`.
358+
:exc:`ResourceWarning` and it passes *source* to :func:`warnings.WarningMessage`.
359359
360360
.. versionadded:: 3.6
361361

0 commit comments

Comments
 (0)
0