Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
6d6ca164
Commit
6d6ca164
authored
Mar 17, 2009
by
Dag Sverre Seljebotn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#158: Small change to error message
parent
162584a4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
Cython/Compiler/ParseTreeTransforms.py
Cython/Compiler/ParseTreeTransforms.py
+1
-1
tests/errors/declareafteruse_T158.pyx
tests/errors/declareafteruse_T158.pyx
+11
-11
No files found.
Cython/Compiler/ParseTreeTransforms.py
View file @
6d6ca164
...
@@ -659,7 +659,7 @@ class DecoratorTransform(CythonTransform, SkipDeclarations):
...
@@ -659,7 +659,7 @@ class DecoratorTransform(CythonTransform, SkipDeclarations):
return
[
func_node
,
reassignment
]
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
):
class
AnalyseDeclarationsTransform
(
CythonTransform
):
basic_property
=
TreeFragment
(
u"""
basic_property
=
TreeFragment
(
u"""
...
...
tests/errors/declareafteruse_T158.pyx
View file @
6d6ca164
...
@@ -51,15 +51,15 @@ cdef unsigned long long var[100][100]
...
@@ -51,15 +51,15 @@ cdef unsigned long long var[100][100]
_ERRORS
=
u"""
_ERRORS
=
u"""
4:13: cdef variable 's' declared after it
's used.
4:13: cdef variable 's' declared after it
is used
4:16: cdef variable 'vv' declared after it
's used.
4:16: cdef variable 'vv' declared after it
is used
9:14: cdef variable 'i' declared after it
's used.
9:14: cdef variable 'i' declared after it
is used
15:14: cdef variable 'i' declared after it
's used.
15:14: cdef variable 'i' declared after it
is used
21:14: cdef variable 'i' declared after it
's used.
21:14: cdef variable 'i' declared after it
is used
24:9: cdef variable 's' declared after it
's used.
24:9: cdef variable 's' declared after it
is used
30:17: cdef variable 't' declared after it
's used.
30:17: cdef variable 't' declared after it
is used
34:13: cdef variable 'r' declared after it
's used.
34:13: cdef variable 'r' declared after it
is used
40:17: cdef variable 't' declared after it
's used.
40:17: cdef variable 't' declared after it
is used
47:10: cdef variable 'baz' declared after it
's used.
47:10: cdef variable 'baz' declared after it
is used
50:24: cdef variable 'var' declared after it
's used.
50:24: cdef variable 'var' declared after it
is used
"""
"""
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment