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

Miss Islington (bot) webhook-mailer at python.org
Fri Mar 13 11:33:09 EDT 2020


https://github.com/python/cpython/commit/962c7220cf41cded256556b8c7973469f3f3c176
commit: 962c7220cf41cded256556b8c7973469f3f3c176
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020年03月13日T21:03:04+05:30
summary:
Doc: Fix grammar in PyErr_ResourceWarning (GH-18879) (GH-18963)
(cherry picked from commit fdcd53fe1a8a7f052d7217c36b2597df06b6e016)
Co-authored-by: Daniel Hahler <git at thequod.de>
files:
M Doc/c-api/exceptions.rst
diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst
index 2f58149c6cd14..19147fe53914e 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
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /