From 89be2fb736fa1b25bca4442ab0dadb616b751450 Mon Sep 17 00:00:00 2001 From: Bruno da Silva de Oliveira Date: Wed, 18 Feb 2004 15:27:59 +0000 Subject: [PATCH] - no_init is now generated for abstract classes [SVN r22312] --- pyste/src/Pyste/ClassExporter.py | 7 ++----- pyste/src/Pyste/pyste.py | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/pyste/src/Pyste/ClassExporter.py b/pyste/src/Pyste/ClassExporter.py index 32dcef58..db87cbd5 100644 --- a/pyste/src/Pyste/ClassExporter.py +++ b/pyste/src/Pyste/ClassExporter.py @@ -253,12 +253,9 @@ class ClassExporter(Exporter): constructors = [x for x in self.public_members if isinstance(x, Constructor)] self.constructors = constructors[:] - # don't export the copy constructor if the class is abstract + # don't export constructors if the class is abstract if self.class_.abstract: - for cons in constructors: - if cons.IsCopy(): - constructors.remove(cons) - break + constructors = [] if not constructors: # declare no_init self.Add('constructor', py_ns + 'no_init') diff --git a/pyste/src/Pyste/pyste.py b/pyste/src/Pyste/pyste.py index 91ed4e50..a503a5c1 100644 --- a/pyste/src/Pyste/pyste.py +++ b/pyste/src/Pyste/pyste.py @@ -51,7 +51,7 @@ from CppParser import CppParser, CppParserError import time import declarations -__version__ = '0.9.28' +__version__ = '0.9.29' def RecursiveIncludes(include): 'Return a list containg the include dir and all its subdirectories'