Use floor division operator instead of deprecated division operator.
This commit is contained in:
parent
e4579c3380
commit
9d2ad441b9
|
@ -335,7 +335,7 @@ class CoverageResults:
|
|||
lnotab, count)
|
||||
|
||||
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
|
||||
|
||||
if summary and sums:
|
||||
|
|
Loading…
Reference in New Issue