This commit is contained in:
Benjamin Peterson 2010-10-03 02:13:39 +00:00
parent 970d1887c5
commit 84060b81e3
1 changed files with 2 additions and 2 deletions

View File

@ -321,8 +321,8 @@ static PyObject *
type_abstractmethods(PyTypeObject *type, void *context) type_abstractmethods(PyTypeObject *type, void *context)
{ {
PyObject *mod = NULL; PyObject *mod = NULL;
/* type its self has an __abstractmethods__ descriptor (this). Don't /* type itself has an __abstractmethods__ descriptor (this). Don't return
return that. */ that. */
if (type != &PyType_Type) if (type != &PyType_Type)
mod = PyDict_GetItemString(type->tp_dict, "__abstractmethods__"); mod = PyDict_GetItemString(type->tp_dict, "__abstractmethods__");
if (!mod) { if (!mod) {