summaryrefslogtreecommitdiffstats
path: root/Objects/genobject.c
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-02-10 04:40:48 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-02-10 04:40:48 (GMT)
commit7e3a91a5fc056f72c93f015bb9f4f22aef9e72fb (patch)
tree2d71aaeaad3d6536f20338811d806976577ec7bf /Objects/genobject.c
parentb0cb42dfdb422495fb0c3a4374f2fa010f56a5ac (diff)
downloadcpython-7e3a91a5fc056f72c93f015bb9f4f22aef9e72fb.zip
cpython-7e3a91a5fc056f72c93f015bb9f4f22aef9e72fb.tar.gz
cpython-7e3a91a5fc056f72c93f015bb9f4f22aef9e72fb.tar.bz2
Issue #26136: Upgrade the generator_stop warning to DeprecationWarning
Patch by Anish Shah.
Diffstat (limited to 'Objects/genobject.c')
-rw-r--r--Objects/genobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/genobject.c b/Objects/genobject.c
index 81a80b7..8ab7cf1 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. */