mirror of
https://github.com/python/cpython.git
synced 2025-08-19 08:11:46 +00:00
Use floor division operator instead of deprecated division operator.
This commit is contained in:
parent
e4579c3380
commit
9d2ad441b9
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue