From: Stefan Behnel Date: Fri, 11 Jul 2008 15:59:53 +0000 (+0200) Subject: typo X-Git-Tag: 0.9.8.1~123^2~12 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8aeee1c7c2daea894185036f518142f449861970;p=cython.git typo --- diff --git a/Cython/Compiler/ParseTreeTransforms.py b/Cython/Compiler/ParseTreeTransforms.py index 9d03cba4..7704500d 100644 --- a/Cython/Compiler/ParseTreeTransforms.py +++ b/Cython/Compiler/ParseTreeTransforms.py @@ -46,6 +46,8 @@ class NormalizeTree(CythonTransform): self.visitchildren(node) self.is_in_statlist = stacktmp if not self.is_in_statlist and not self.is_in_expr: + if isinstance(node, TupleNode): + print node return StatListNode(pos=node.pos, stats=[node]) else: return node diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index 8839009d..efb88fbf 100644 --- a/Cython/Compiler/Parsing.py +++ b/Cython/Compiler/Parsing.py @@ -1615,7 +1615,7 @@ def p_c_simple_base_type(s, self_flag, nonempty): # Treat trailing [] on type as buffer access if s.sy == '[': if is_basic: - p.error("Basic C types do not support buffer access") + s.error("Basic C types do not support buffer access") return p_buffer_access(s, type_node) else: return type_node