Skip to content

Commit 6aa2fb2

Browse files
Apply Kumar's review suggestion
Co-authored-by: Kumar Aditya <[email protected]>
1 parent 35e9e78 commit 6aa2fb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/import.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2449,7 +2449,7 @@ PyImport_CreateModuleFromInitfunc(
24492449
{
24502450
PyThreadState *tstate = _PyThreadState_GET();
24512451

2452-
PyObject *name = PyObject_GetAttrString(spec, "name");
2452+
PyObject *name = PyObject_GetAttr(spec, &_Py_ID(name));
24532453
if (name == NULL) {
24542454
return NULL;
24552455
}

0 commit comments

Comments
 (0)