From f4fb49d32f5ad1b96fedeb5083329022e4e26fee Mon Sep 17 00:00:00 2001 From: Bruno da Silva de Oliveira Date: Wed, 18 Feb 2004 15:33:34 +0000 Subject: [PATCH] - reverted previous commit [SVN r22313] --- pyste/src/Pyste/ClassExporter.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyste/src/Pyste/ClassExporter.py b/pyste/src/Pyste/ClassExporter.py index db87cbd5..b4b614f1 100644 --- a/pyste/src/Pyste/ClassExporter.py +++ b/pyste/src/Pyste/ClassExporter.py @@ -255,7 +255,11 @@ class ClassExporter(Exporter): self.constructors = constructors[:] # don't export constructors if the class is abstract if self.class_.abstract: - constructors = [] + for cons in constructors: + if cons.IsCopy(): + constructors.remove(cons) + break + if not constructors: # declare no_init self.Add('constructor', py_ns + 'no_init')