diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-02-10 04:40:48 +0000 |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-02-10 04:40:48 +0000 |
commit | cc3ba16af422a2ba6fd25d83e8c21e327dbf7a0d (patch) | |
tree | b6cf93fb3003ff11072c7010cbcbe528ace07100 /Objects/genobject.c | |
parent | 14661bd9745f73207ac3b2823a2a19372b0f9422 (diff) | |
download | cpython-cc3ba16af422a2ba6fd25d83e8c21e327dbf7a0d.tar.gz |
Issue #26136: Upgrade the generator_stop warning to DeprecationWarning
Patch by Anish Shah.
Diffstat (limited to 'Objects/genobject.c')
-rw-r--r-- | Objects/genobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/genobject.c b/Objects/genobject.c index 81a80b7ea7..8ab7cf1a41 100644 --- a/Objects/genobject.c +++ b/Objects/genobject.c @@ -178,7 +178,7 @@ gen_send_ex(PyGenObject *gen, PyObject *arg, int exc) /* Pop the exception before issuing a warning. */ PyErr_Fetch(&exc, &val, &tb); - if (PyErr_WarnFormat(PyExc_PendingDeprecationWarning, 1, + if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1, "generator '%.50S' raised StopIteration", gen->gi_qualname)) { /* Warning was converted to an error. */ |