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
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):
group_name
,
match
.
group
(
group_name
))
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
):
try
:
...
...
@@ -198,10 +198,10 @@ class AnnotationCCodeWriter(CCodeWriter):
u"<pre class='cython line score-{score}'{onclick}>"
# generate line number with expand symbol in front,
# 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
,
expandsymbol
=
expandsymbol
,
line
_width
=
line
_width
,
line
no_width
=
lineno
_width
,
line
=
k
,
code
=
line
.
rstrip
(),
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