From a232af5b10615bab2d14783960864bba81937a18 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Sun, 30 Dec 2007 18:37:31 +0000 Subject: [PATCH] Using the helper class as replacement for the real class, when not dealing with a real subclass, is nothing but trouble. --- pybindgen/cppclass.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pybindgen/cppclass.py b/pybindgen/cppclass.py index 36e8f65..91e4131 100644 --- a/pybindgen/cppclass.py +++ b/pybindgen/cppclass.py @@ -409,13 +409,7 @@ class CppClass(object): if self.cannot_be_constructed: raise CodeGenerationError("%s cannot be constructed" % self.full_name) if self.have_pure_virtual_methods: - if self.helper_class is None: - raise CodeGenerationError("%s cannot be constructed" % self.full_name) - else: - if self.helper_class.cannot_be_constructed: - raise CodeGenerationError("%s cannot be constructed" % self.full_name) - else: - return self.helper_class.name + raise CodeGenerationError("%s cannot be constructed" % self.full_name) else: return self.full_name