8000 Drop an unnecessary condition. · python/cpython@58585a9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 58585a9

Browse files
Drop an unnecessary condition.
1 parent db8612f commit 58585a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/dictobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3574,7 +3574,7 @@ _PyDict_SizeOf(PyDictObject *mp)
35743574
}
35753575
/* If the dictionary is split, the keys portion is accounted-for
35763576
in the type object. */
3577-
if (mp->ma_keys->dk_refcnt == 1 || mp->ma_keys == Py_EMPTY_KEYS) {
3577+
if (mp->ma_keys->dk_refcnt == 1) {
35783578
res += _PyDict_KeysSize(mp->ma_keys);
35793579
}
35803580
assert(res <= (size_t)PY_SSIZE_T_MAX);

0 commit comments

Comments
 (0)
0