Ensure we do not generate helper class for classes with subclassing disabled

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2008-07-13 15:27:51 +01:00
1 parent 391bf27353
commit b47d59ac20
1 file changed
+1 -1
+1 -1
View File
@@ -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: