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
Boxiang Sun
cython
Commits
182ab7ea
Commit
182ab7ea
authored
Feb 22, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coverage: prefer real source file for line annotation if we find it
parent
983b6c13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
Cython/Coverage.py
Cython/Coverage.py
+7
-2
No files found.
Cython/Coverage.py
View file @
182ab7ea
...
...
@@ -259,5 +259,10 @@ class CythonModuleReporter(FileReporter):
return
'
\
n
'
.
join
(
self
.
_iter_source_lines
())
def
source_token_lines
(
self
):
for
line
in
self
.
_iter_source_lines
():
yield
[(
'txt'
,
line
)]
if
os
.
path
.
exists
(
self
.
filename
):
with
open
(
self
.
filename
)
as
f
:
for
line
in
f
:
yield
[(
'txt'
,
line
)]
else
:
for
line
in
self
.
_iter_source_lines
():
yield
[(
'txt'
,
line
)]
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