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
4418a47b
Commit
4418a47b
authored
Sep 01, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Py3 fixes in Coverage plugin
parent
15354f18
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Cython/Coverage.py
Cython/Coverage.py
+3
-3
No files found.
Cython/Coverage.py
View file @
4418a47b
...
@@ -205,7 +205,7 @@ class Plugin(CoveragePlugin):
...
@@ -205,7 +205,7 @@ class Plugin(CoveragePlugin):
if self._c_files_map is None:
if self._c_files_map is None:
self._c_files_map = {}
self._c_files_map = {}
for filename, code in code_lines.ite
rite
ms():
for filename, code in code_lines.items():
abs_path = _find_dep_file_path(c_file, filename)
abs_path = _find_dep_file_path(c_file, filename)
self._c_files_map[abs_path] = (c_file, filename, code)
self._c_files_map[abs_path] = (c_file, filename, code)
...
@@ -263,11 +263,11 @@ class CythonModuleReporter(FileReporter):
...
@@ -263,11 +263,11 @@ class CythonModuleReporter(FileReporter):
self._code = code
self._code = code
def statements(self):
def statements(self):
return
self._code.viewkeys(
)
return
list(self._code
)
def _iter_source_tokens(self):
def _iter_source_tokens(self):
current_line = 1
current_line = 1
for line_no, code_line in sorted(self._code.ite
rite
ms()):
for line_no, code_line in sorted(self._code.items()):
while line_no > current_line:
while line_no > current_line:
yield []
yield []
current_line += 1
current_line += 1
...
...
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