Skip to content

Commit 143dd0f

Browse files
Update specialize.c
1 parent f408c67 commit 143dd0f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Python/specialize.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -383,16 +383,12 @@ specialize_module_load_attr_lock_held(PyDictObject *dict, _Py_CODEUNIT *instr, P
383383
SPECIALIZATION_FAIL(LOAD_ATTR, SPEC_FAIL_ATTR_NON_STRING);
384384
return -1;
385385
}
386-
#ifdef Py_GIL_DISABLED
387386
PyObject *value;
388387
Py_ssize_t index = _PyDict_LookupIndexAndValue(dict, name, &value);
389388
if (value != NULL && PyLazyImport_CheckExact(value)) {
390389
SPECIALIZATION_FAIL(LOAD_ATTR, SPEC_FAIL_ATTR_MODULE_LAZY_VALUE);
391390
return -1;
392391
}
393-
#else
394-
Py_ssize_t index = _PyDict_LookupIndexAndValue(dict, name);
395-
#endif
396392
assert(index != DKIX_ERROR);
397393
if (index != (uint16_t)index) {
398394
SPECIALIZATION_FAIL(LOAD_ATTR,

0 commit comments

Comments
 (0)