From 9d2ad441b916b3418c81cff4a03ab2242d9988f9 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Mon, 11 Apr 2011 17:45:01 -0700 Subject: [PATCH] Use floor division operator instead of deprecated division operator. --- Lib/trace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/trace.py b/Lib/trace.py index 97491db413..6e15e8b4bd 100644 --- a/Lib/trace.py +++ b/Lib/trace.py @@ -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: -- 2.50.1