[Python-checkins] cpython (2.7): Use floor division operator instead of deprecated division operator.
raymond.hettinger
python-checkins at python.org
Tue Apr 12 02:45:14 CEST 2011
http://hg.python.org/cpython/rev/7b71872fb66a
changeset: 69264:7b71872fb66a
branch: 2.7
user: Raymond Hettinger <python at rcn.com>
date: Mon Apr 11 17:45:01 2011 -0700
summary:
Use floor division operator instead of deprecated division operator.
files:
Lib/trace.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/trace.py b/Lib/trace.py
--- 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:
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list