diff options
-rw-r--r-- | Objects/typeobject.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index f0c787f..9f0ab15 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -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; |