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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
c4c80d98
Commit
c4c80d98
authored
Apr 27, 2014
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve variable name
parent
a361652c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Cython/Compiler/Annotate.py
Cython/Compiler/Annotate.py
+3
-3
No files found.
Cython/Compiler/Annotate.py
View file @
c4c80d98
...
@@ -169,7 +169,7 @@ class AnnotationCCodeWriter(CCodeWriter):
...
@@ -169,7 +169,7 @@ class AnnotationCCodeWriter(CCodeWriter):
group_name
,
match
.
group
(
group_name
))
group_name
,
match
.
group
(
group_name
))
lines
=
self
.
_htmlify_code
(
cython_code
).
splitlines
()
lines
=
self
.
_htmlify_code
(
cython_code
).
splitlines
()
line_width
=
len
(
str
(
len
(
lines
)))
line
no
_width
=
len
(
str
(
len
(
lines
)))
for
k
,
line
in
enumerate
(
lines
,
1
):
for
k
,
line
in
enumerate
(
lines
,
1
):
try
:
try
:
...
@@ -198,10 +198,10 @@ class AnnotationCCodeWriter(CCodeWriter):
...
@@ -198,10 +198,10 @@ class AnnotationCCodeWriter(CCodeWriter):
u"<pre class='cython line score-{score}'{onclick}>"
u"<pre class='cython line score-{score}'{onclick}>"
# generate line number with expand symbol in front,
# generate line number with expand symbol in front,
# and the right number of digit
# and the right number of digit
u"{expandsymbol}{line:0{line_width}d}: {code}</pre>
\
n
"
.
format
(
u"{expandsymbol}{line:0{line
no
_width}d}: {code}</pre>
\
n
"
.
format
(
score
=
score
,
score
=
score
,
expandsymbol
=
expandsymbol
,
expandsymbol
=
expandsymbol
,
line
_width
=
line
_width
,
line
no_width
=
lineno
_width
,
line
=
k
,
line
=
k
,
code
=
line
.
rstrip
(),
code
=
line
.
rstrip
(),
onclick
=
onclick
,
onclick
=
onclick
,
...
...
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