summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2015-05-30 17:43:36 (GMT)
committerEric Snow <ericsnowcurrently@gmail.com>2015-05-30 17:43:36 (GMT)
commit67fb92e8c690ccb0d3a557affcc6b46c13cb94b0 (patch)
treefa2117381c4e9e7f826f5bc2379fd4ee2f39b163 /Objects
parentc5e59609ac9947e91e7c2633c1e3634ff766ab08 (diff)
downloadcpython-67fb92e8c690ccb0d3a557affcc6b46c13cb94b0.zip
cpython-67fb92e8c690ccb0d3a557affcc6b46c13cb94b0.tar.gz
cpython-67fb92e8c690ccb0d3a557affcc6b46c13cb94b0.tar.bz2
Issue #16991: Do not return None from OrderedDict.__reversed__.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/odictobject.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Objects/odictobject.c b/Objects/odictobject.c
index a5fecab..cc6c53c 100644
--- a/Objects/odictobject.c
+++ b/Objects/odictobject.c
@@ -1357,9 +1357,6 @@ static PyObject * odictiter_new(PyODictObject *, int);
static PyObject *
odict_reversed(PyODictObject *od)
{
- if (_odict_EMPTY(od)) {
- Py_RETURN_NONE;
- }
return odictiter_new(od, _odict_ITER_KEYS|_odict_ITER_REVERSED);
}