Skip to content

Commit f4fb49d

Browse files
author
Bruno da Silva de Oliveira
committed
- reverted previous commit
[SVN r22313]
1 parent 89be2fb commit f4fb49d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

pyste/src/Pyste/ClassExporter.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,11 @@ def init_code(cons):
255255
self.constructors = constructors[:]
256256
# don't export constructors if the class is abstract
257257
if self.class_.abstract:
258-
constructors = []
258+
for cons in constructors:
259+
if cons.IsCopy():
260+
constructors.remove(cons)
261+
break
262+
259263
if not constructors:
260264
# declare no_init
261265
self.Add('constructor', py_ns + 'no_init')

0 commit comments

Comments
 (0)