Remove redundant assignment in _PyObject_LengthHint

This commit is contained in:
Mark Dickinson 2009-02-08 13:58:10 +00:00
parent 0194f5bc98
commit b91d2f5bd3
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ _PyObject_LengthHint(PyObject *o, Py_ssize_t defaultvalue)
PyErr_Clear(); PyErr_Clear();
return defaultvalue; return defaultvalue;
} }
rv = rv = PyLong_Check(ro) ? PyLong_AsSsize_t(ro) : defaultvalue; rv = PyLong_Check(ro) ? PyLong_AsSsize_t(ro) : defaultvalue;
Py_DECREF(ro); Py_DECREF(ro);
return rv; return rv;
} }