Skip to content

Commit 828540a

Browse files
committed
Clean things up a bit
1 parent 5b06d97 commit 828540a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Python/ceval.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,7 +1459,7 @@ eval_frame_handle_pending(PyThreadState *tstate)
14591459
PyDictKeyEntry *ep = DK_ENTRIES(dict->ma_keys) + cache->index; \
14601460
res = ep->me_value; \
14611461
DEOPT_IF(res == NULL, LOAD_##attr_or_method); \
1462-
/* XXX: Uncomment this next line to make test_asyncio very angry! */ \
1462+
/* XXX: Remove this next line to make test_asyncio very angry! */ \
14631463
DEOPT_IF(LOAD_##attr_or_method == LOAD_ATTR, LOAD_##attr_or_method); \
14641464
STAT_INC(LOAD_##attr_or_method, hit); \
14651465
Py_INCREF(res);
@@ -4465,7 +4465,9 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
44654465
assert(self_cls->tp_flags & Py_TPFLAGS_MANAGED_DICT);
44664466
PyDictObject *dict = *(PyDictObject**)_PyObject_ManagedDictPointer(self);
44674467
DEOPT_IF(dict != NULL, LOAD_METHOD);
4468-
DEOPT_IF(((PyHeapTypeObject *)self_cls)->ht_cached_keys->dk_version != read_u32(cache->keys_version), LOAD_METHOD);
4468+
PyHeapTypeObject *self_heap_type = (PyHeapTypeObject *)self_cls;
4469+
DEOPT_IF(self_heap_type->ht_cached_keys->dk_version !=
4470+
read_u32(cache->keys_version), LOAD_METHOD);
44694471
STAT_INC(LOAD_METHOD, hit);
44704472
PyObject *res = read_obj(cache->descr);
44714473
assert(res != NULL);

0 commit comments

Comments
 (0)