Skip to content
Prev Previous commit
Next Next commit
Drop an unnecessary condition.
  • Loading branch information
ericsnowcurrently committed May 8, 2023
commit 58585a9a983002c2d76c9524d60750d32c7d69ef
2 changes: 1 addition & 1 deletion Objects/dictobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -3574,7 +3574,7 @@ _PyDict_SizeOf(PyDictObject *mp)
}
/* If the dictionary is split, the keys portion is accounted-for
in the type object. */
if (mp->ma_keys->dk_refcnt == 1 || mp->ma_keys == Py_EMPTY_KEYS) {
if (mp->ma_keys->dk_refcnt == 1) {
res += _PyDict_KeysSize(mp->ma_keys);
}
assert(res <= (size_t)PY_SSIZE_T_MAX);
Expand Down