]> granicus.if.org Git - python/commitdiff
be consistent with rest of function
authorBenjamin Peterson <benjamin@python.org>
Sun, 1 Apr 2012 22:48:02 +0000 (18:48 -0400)
committerBenjamin Peterson <benjamin@python.org>
Sun, 1 Apr 2012 22:48:02 +0000 (18:48 -0400)
Objects/typeobject.c

index f0c787fa2a54cc4df96954d719228c8a7ee9be10..9f0ab159453795f1840715013b9dfe43b4210b55 100644 (file)
@@ -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;