Browse Source
Doc: Fix grammar in PyErr_ResourceWarning (GH-18879)
pull/18964/head
Daniel Hahler
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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 |
|
|
|
|
|
|
|
|