commit | 9d2ad441b916b3418c81cff4a03ab2242d9988f9 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Mon Apr 11 17:45:01 2011 -0700 |
committer | Raymond Hettinger <python@rcn.com> | Mon Apr 11 17:45:01 2011 -0700 |
tree | 74615d1e807ab8bef94f2f9db611d0aab06c8e7c | |
parent | e4579c33802f555594678ead8d4a163f033e8a54 [diff] [blame] |
Use floor division operator instead of deprecated division operator.
diff --git a/Lib/trace.py b/Lib/trace.py index 97491db..6e15e8b 100644 --- a/Lib/trace.py +++ b/Lib/trace.py
@@ -335,7 +335,7 @@ 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: