From bf4d69f6f95e92457263802f3777cacad7791992 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Wed, 15 Aug 2012 14:36:17 +0200 Subject: [PATCH] minor code cleanup --- Cython/Compiler/Symtab.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cython/Compiler/Symtab.py b/Cython/Compiler/Symtab.py index 60ac386..cfd9e96 100644 --- a/Cython/Compiler/Symtab.py +++ b/Cython/Compiler/Symtab.py @@ -2023,7 +2023,7 @@ class CppClassScope(Scope): # Look for default constructors in all base classes. if self.default_constructor is None: entry = self.lookup(self.name) - if len(entry.type.base_classes) == 0: + if not entry.type.base_classes: self.default_constructor = True return for base_class in entry.type.base_classes: @@ -2035,7 +2035,7 @@ class CppClassScope(Scope): type = alternative.type if type.is_ptr: type = type.base_type - if len(type.args) == 0: + if not type.args: found = True break if not found: -- 2.7.4