Remove the silly "Cannot add virtual methods if subclassing support was not enabled for this class" restriction.

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2008-03-24 15:43:17 +00:00
1 parent 9a8c41eee2
commit 16035f7dc6
1 file changed
-3
-3
View File
@@ -944,9 +944,6 @@ public:
self.nonpublic_methods.append(method)
if method.is_virtual:
self._have_pure_virtual_methods = None
if not self.allow_subclassing:
raise ValueError("Cannot add virtual methods if subclassing "
"support was not enabled for this class")
helper_class = self.get_helper_class()
if helper_class is not None:
if not method.is_pure_virtual: