Fix crash auto-completing bpy.types in the Python console

Reference counting error in dc61a63e3f
This commit is contained in:
Campbell Barton 2021-02-22 22:26:20 +11:00
parent 623ddc4aa6
commit 78c3caf3c1
Notes: blender-bot 2023-02-14 10:29:32 +01:00
Referenced by issue #85872, PyAPI issues after recent changes to add compatibility with Python 3.10
1 changed files with 1 additions and 1 deletions

View File

@ -7729,7 +7729,7 @@ static PyObject *bpy_types_module_dir(PyObject *self)
PyObject *key, *value;
Py_ssize_t pos = 0;
while (PyDict_Next(submodule_dict, &pos, &key, &value)) {
PyList_APPEND(ret, key);
PyList_Append(ret, key);
}
return ret;
}