From 6d6ca164486b812f8a405ac893a9d54ab3ef3238 Mon Sep 17 00:00:00 2001 From: Dag Sverre Seljebotn Date: Tue, 17 Mar 2009 07:32:51 +0100 Subject: [PATCH] #158: Small change to error message --- Cython/Compiler/ParseTreeTransforms.py | 2 +- tests/errors/declareafteruse_T158.pyx | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Cython/Compiler/ParseTreeTransforms.py b/Cython/Compiler/ParseTreeTransforms.py index d9f37c07..21bb7b07 100644 --- a/Cython/Compiler/ParseTreeTransforms.py +++ b/Cython/Compiler/ParseTreeTransforms.py @@ -659,7 +659,7 @@ class DecoratorTransform(CythonTransform, SkipDeclarations): return [func_node, reassignment] -ERR_DEC_AFTER = "cdef variable '%s' declared after it's used." +ERR_DEC_AFTER = "cdef variable '%s' declared after it is used" class AnalyseDeclarationsTransform(CythonTransform): basic_property = TreeFragment(u""" diff --git a/tests/errors/declareafteruse_T158.pyx b/tests/errors/declareafteruse_T158.pyx index 364c9421..73c0f4d6 100644 --- a/tests/errors/declareafteruse_T158.pyx +++ b/tests/errors/declareafteruse_T158.pyx @@ -51,15 +51,15 @@ cdef unsigned long long var[100][100] _ERRORS = u""" -4:13: cdef variable 's' declared after it's used. -4:16: cdef variable 'vv' declared after it's used. -9:14: cdef variable 'i' declared after it's used. -15:14: cdef variable 'i' declared after it's used. -21:14: cdef variable 'i' declared after it's used. -24:9: cdef variable 's' declared after it's used. -30:17: cdef variable 't' declared after it's used. -34:13: cdef variable 'r' declared after it's used. -40:17: cdef variable 't' declared after it's used. -47:10: cdef variable 'baz' declared after it's used. -50:24: cdef variable 'var' declared after it's used. +4:13: cdef variable 's' declared after it is used +4:16: cdef variable 'vv' declared after it is used +9:14: cdef variable 'i' declared after it is used +15:14: cdef variable 'i' declared after it is used +21:14: cdef variable 'i' declared after it is used +24:9: cdef variable 's' declared after it is used +30:17: cdef variable 't' declared after it is used +34:13: cdef variable 'r' declared after it is used +40:17: cdef variable 't' declared after it is used +47:10: cdef variable 'baz' declared after it is used +50:24: cdef variable 'var' declared after it is used """ -- 2.26.2