summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-04-06 19:51:29 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-04-06 19:51:29 (GMT)
commit6c467a41bc832379e95925784f24ee01d15ee1d9 (patch)
tree984913da0308b7810cde452830d1f17e3c0c2b5e /Objects
parent022db598acdc33a7c026322a25b54ff594f54042 (diff)
downloadcpython-6c467a41bc832379e95925784f24ee01d15ee1d9.zip
cpython-6c467a41bc832379e95925784f24ee01d15ee1d9.tar.gz
cpython-6c467a41bc832379e95925784f24ee01d15ee1d9.tar.bz2
Revert a premature patch for issue #14010 (changeset d17d10c84d27).
Diffstat (limited to 'Objects')
-rw-r--r--Objects/abstract.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c
index bc247e5..3c88711 100644
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -3104,10 +3104,7 @@ PyObject *
PyIter_Next(PyObject *iter)
{
PyObject *result;
- if (Py_EnterRecursiveCall(" while iterating"))
- return NULL;
result = (*iter->ob_type->tp_iternext)(iter);
- Py_LeaveRecursiveCall();
if (result == NULL &&
PyErr_Occurred() &&
PyErr_ExceptionMatches(PyExc_StopIteration))