cython-devel

changeset 2981:f06147ed2f0b

Fix #508
author Dag Sverre Seljebotn <dagss@student.matnat.uio.no>
date Sat Feb 20 13:36:10 2010 +0100 (5 months ago)
parents c0db10c1a935
children 89295a33107e
files Cython/Compiler/AnalysedTreeTransforms.py tests/run/autotestdict.pxd
line diff
1.1 --- a/Cython/Compiler/AnalysedTreeTransforms.py Tue Feb 02 04:18:23 2010 -0800 1.2 +++ b/Cython/Compiler/AnalysedTreeTransforms.py Sat Feb 20 13:36:10 2010 +0100 1.3 @@ -13,6 +13,8 @@ 1.4 blacklist = ['__cinit__', '__dealloc__', '__richcmp__', '__nonzero__'] 1.5 1.6 def visit_ModuleNode(self, node): 1.7 + if node.is_pxd: 1.8 + return node 1.9 self.scope_type = 'module' 1.10 self.scope_node = node 1.11 if self.current_directives['autotestdict']:
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/tests/run/autotestdict.pxd Sat Feb 20 13:36:10 2010 +0100 2.3 @@ -0,0 +1,1 @@ 2.4 +# I just exist