summaryrefslogtreecommitdiffstats
path: root/bin/svn-bisect.py
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 /bin/svn-bisect.py
parented90f2420a34f20480311261cf8663803ca65b6e (diff)
downloadSCons-bcdc9a412521ae0b9f9aea7997a880af6dbda2a6.zip
SCons-bcdc9a412521ae0b9f9aea7997a880af6dbda2a6.tar.gz
SCons-bcdc9a412521ae0b9f9aea7997a880af6dbda2a6.tar.bz2
Convert to Python 3.x division rules.
Diffstat (limited to 'bin/svn-bisect.py')
-rwxr-xr-xbin/svn-bisect.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/svn-bisect.py b/bin/svn-bisect.py
index e9ebcf8..77bda58 100755
--- a/bin/svn-bisect.py
+++ b/bin/svn-bisect.py
@@ -1,5 +1,6 @@
#!/usr/bin/env python
# -*- Python -*-
+from __future__ import division
import sys
from math import log, ceil
@@ -52,7 +53,7 @@ msg = "****** max %d revisions to test (bug bracketed by [%d,%d])"
while upper-lower > 1:
print msg % (ceil(log(upper-lower,2)), lower, upper)
- mid = int((lower + upper)/2)
+ mid = (lower + upper)//2
midfails = testfail(mid)
if midfails == lowerfails:
lower = mid