From 8aeee1c7c2daea894185036f518142f449861970 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 11 Jul 2008 17:59:53 +0200 Subject: [PATCH] typo --- Cython/Compiler/ParseTreeTransforms.py | 2 ++ Cython/Compiler/Parsing.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- 2.26.2