diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-04-01 22:48:02 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-04-01 22:48:02 (GMT) |
commit | ab3c1c1994ec819781ba27ba8a5c6d75f70cb2af (patch) | |
tree | 6fb5bedd048e1dc4e6cc0a6cdd7977a3fecaced4 /Objects | |
parent | 533281dd4f979cf65d250e56a09ea94c364084dd (diff) | |
download | cpython-ab3c1c1994ec819781ba27ba8a5c6d75f70cb2af.zip cpython-ab3c1c1994ec819781ba27ba8a5c6d75f70cb2af.tar.gz cpython-ab3c1c1994ec819781ba27ba8a5c6d75f70cb2af.tar.bz2 |
be consistent with rest of function
Diffstat (limited to 'Objects')
-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; |