Skip to content

Commit

Permalink
Drop an unnecessary condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsnowcurrently committed May 8, 2023
1 parent db8612f commit 58585a9
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 58585a9

Please sign in to comment.