summaryrefslogtreecommitdiffstats
path: root/bench
diff options
context:
space:
mode:
authorGreg Noel <GregNoel@tigris.org>2010-04-24 22:25:56 (GMT)
committerGreg Noel <GregNoel@tigris.org>2010-04-24 22:25:56 (GMT)
commitbcdc9a412521ae0b9f9aea7997a880af6dbda2a6 (patch)
treebbdcd3f7da00dc5fcfa712bfaf148f392ac12fda /bench
parented90f2420a34f20480311261cf8663803ca65b6e (diff)
downloadSCons-bcdc9a412521ae0b9f9aea7997a880af6dbda2a6.zip
SCons-bcdc9a412521ae0b9f9aea7997a880af6dbda2a6.tar.gz
SCons-bcdc9a412521ae0b9f9aea7997a880af6dbda2a6.tar.bz2
Convert to Python 3.x division rules.
Diffstat (limited to 'bench')
-rw-r--r--bench/bench.py1
-rw-r--r--bench/timeit.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/bench/bench.py b/bench/bench.py
index 3391f9d..74dbf12 100644
--- a/bench/bench.py
+++ b/bench/bench.py
@@ -23,6 +23,7 @@
#
# This will allow (as much as possible) us to time just the code itself,
# not Python function call overhead.
+from __future__ import division
import getopt
import sys
diff --git a/bench/timeit.py b/bench/timeit.py
index 199b7c9..ed94361 100644
--- a/bench/timeit.py
+++ b/bench/timeit.py
@@ -46,6 +46,7 @@ be aware of it. The baseline overhead can be measured by invoking the
program without arguments. The baseline overhead differs between
Python versions!
"""
+from __future__ import division
try:
import gc