mirror of
https://github.com/python/cpython.git
synced 2025-09-18 14:40:43 +00:00
Remove redundant assignment in _PyObject_LengthHint
This commit is contained in:
parent
0194f5bc98
commit
b91d2f5bd3
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ _PyObject_LengthHint(PyObject *o, Py_ssize_t defaultvalue)
|
|||
PyErr_Clear();
|
||||
return defaultvalue;
|
||||
}
|
||||
rv = rv = PyLong_Check(ro) ? PyLong_AsSsize_t(ro) : defaultvalue;
|
||||
rv = PyLong_Check(ro) ? PyLong_AsSsize_t(ro) : defaultvalue;
|
||||
Py_DECREF(ro);
|
||||
return rv;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue