Commit ab3c1c19 authored by Benjamin Peterson's avatar Benjamin Peterson

be consistent with rest of function

parent 533281dd
...@@ -475,9 +475,8 @@ type_set_bases(PyTypeObject *type, PyObject *value, void *context) ...@@ -475,9 +475,8 @@ type_set_bases(PyTypeObject *type, PyObject *value, void *context)
new_base = best_base(value); new_base = best_base(value);
if (!new_base) { if (!new_base)
return -1; return -1;
}
if (!compatible_for_assignment(type->tp_base, new_base, "__bases__")) if (!compatible_for_assignment(type->tp_base, new_base, "__bases__"))
return -1; return -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment