diff options
Diffstat (limited to 'Modules/_threadmodule.c')
-rw-r--r-- | Modules/_threadmodule.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/_threadmodule.c b/Modules/_threadmodule.c index c9171f5..f594bda 100644 --- a/Modules/_threadmodule.c +++ b/Modules/_threadmodule.c @@ -925,13 +925,15 @@ local_getattro(localobject *self, PyObject *name) if (Py_TYPE(self) != &localtype) /* use generic lookup for subtypes */ - return _PyObject_GenericGetAttrWithDict((PyObject *)self, name, ldict); + return _PyObject_GenericGetAttrWithDict( + (PyObject *)self, name, ldict, 0); /* Optimization: just look in dict ourselves */ value = PyDict_GetItem(ldict, name); if (value == NULL) /* Fall back on generic to get __class__ and __dict__ */ - return _PyObject_GenericGetAttrWithDict((PyObject *)self, name, ldict); + return _PyObject_GenericGetAttrWithDict( + (PyObject *)self, name, ldict, 0); Py_INCREF(value); return value; |