Commit 9d2ad441 authored by Raymond Hettinger's avatar Raymond Hettinger

Use floor division operator instead of deprecated division operator.

parent e4579c33
...@@ -335,7 +335,7 @@ class CoverageResults: ...@@ -335,7 +335,7 @@ class CoverageResults:
lnotab, count) lnotab, count)
if summary and n_lines: if summary and n_lines:
percent = int(100 * n_hits / n_lines) percent = 100 * n_hits // n_lines
sums[modulename] = n_lines, percent, modulename, filename sums[modulename] = n_lines, percent, modulename, filename
if summary and sums: if summary and sums:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment