From: Raymond Hettinger Date: Tue, 12 Apr 2011 00:45:01 +0000 (-0700) Subject: Use floor division operator instead of deprecated division operator. X-Git-Tag: v2.7.2rc1~169 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d2ad441b916b3418c81cff4a03ab2242d9988f9;p=python Use floor division operator instead of deprecated division operator. --- 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: