mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-106521: Remove _PyObject_LookupAttr() function (GH-106642)
This commit is contained in:
parent
e8ab0096a5
commit
be1b968dc1
45 changed files with 351 additions and 352 deletions
|
|
@ -742,7 +742,7 @@ _PyModuleSpec_IsInitializing(PyObject *spec)
|
|||
{
|
||||
if (spec != NULL) {
|
||||
PyObject *value;
|
||||
int ok = _PyObject_LookupAttr(spec, &_Py_ID(_initializing), &value);
|
||||
int ok = PyObject_GetOptionalAttr(spec, &_Py_ID(_initializing), &value);
|
||||
if (ok == 0) {
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue