Skip to content

Commit 89be2fb

Browse files
author
Bruno da Silva de Oliveira
committed
- no_init is now generated for abstract classes
[SVN r22312]
1 parent 62f0885 commit 89be2fb

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

pyste/src/Pyste/ClassExporter.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -253,12 +253,9 @@ def init_code(cons):
253253

254254
constructors = [x for x in self.public_members if isinstance(x, Constructor)]
255255
self.constructors = constructors[:]
256-
# don't export the copy constructor if the class is abstract
256+
# don't export constructors if the class is abstract
257257
if self.class_.abstract:
258-
for cons in constructors:
259-
if cons.IsCopy():
260-
constructors.remove(cons)
261-
break
258+
constructors = []
262259
if not constructors:
263260
# declare no_init
264261
self.Add('constructor', py_ns + 'no_init')

pyste/src/Pyste/pyste.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
import time
5252
import declarations
5353

54-
__version__ = '0.9.28'
54+
__version__ = '0.9.29'
5555

5656
def RecursiveIncludes(include):
5757
'Return a list containg the include dir and all its subdirectories'

0 commit comments

Comments
 (0)