From b47d59ac209077c91b445cb106fb4655744cf572 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Sun, 13 Jul 2008 15:27:51 +0100 Subject: [PATCH] Ensure we do not generate helper class for classes with subclassing disabled --- pybindgen/cppclass.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pybindgen/cppclass.py b/pybindgen/cppclass.py index a619f20..ea992a9 100644 --- a/pybindgen/cppclass.py +++ b/pybindgen/cppclass.py @@ -860,7 +860,7 @@ class CppClass(object): def get_helper_class(self): """gets the "helper class" for this class wrapper, creating it if necessary""" - if self.helper_class_disabled: + if self.helper_class_disabled or not self.allow_subclassing: return None if self.helper_class is None: if not self.is_singleton: