projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
288ebda
)
fix unknown name error
author
Stefan Behnel
<stefan_ml@behnel.de>
Sat, 27 Jul 2013 16:51:18 +0000
(18:51 +0200)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Sat, 27 Jul 2013 16:51:18 +0000
(18:51 +0200)
Cython/Compiler/ParseTreeTransforms.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ParseTreeTransforms.py
b/Cython/Compiler/ParseTreeTransforms.py
index
43fe2d0
..
bddd461
100644
(file)
--- a/
Cython/Compiler/ParseTreeTransforms.py
+++ b/
Cython/Compiler/ParseTreeTransforms.py
@@
-953,8
+953,10
@@
class InterpretCompilerDirectives(CythonTransform, SkipDeclarations):
if name == 'locals':
node.directive_locals = value
elif name != 'final':
- self.context.nonfatal_error(PostParseError(dec.pos,
- "Cdef functions can only take cython.locals() or final decorators, got %s." % name))
+ self.context.nonfatal_error(PostParseError(
+ node.pos,
+ "Cdef functions can only take cython.locals() "
+ "or final decorators, got %s." % name))
body = Nodes.StatListNode(node.pos, stats=[node])
return self.visit_with_directives(body, directives)