mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
be consistent with rest of function
This commit is contained in:
parent
533281dd4f
commit
ab3c1c1994
1 changed files with 1 additions and 2 deletions
|
@ -475,9 +475,8 @@ type_set_bases(PyTypeObject *type, PyObject *value, void *context)
|
|||
|
||||
new_base = best_base(value);
|
||||
|
||||
if (!new_base) {
|
||||
if (!new_base)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (!compatible_for_assignment(type->tp_base, new_base, "__bases__"))
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue