diff options
author | Greg Noel <GregNoel@tigris.org> | 2010-04-24 22:25:56 (GMT) |
---|---|---|
committer | Greg Noel <GregNoel@tigris.org> | 2010-04-24 22:25:56 (GMT) |
commit | bcdc9a412521ae0b9f9aea7997a880af6dbda2a6 (patch) | |
tree | bbdcd3f7da00dc5fcfa712bfaf148f392ac12fda /bin/svn-bisect.py | |
parent | ed90f2420a34f20480311261cf8663803ca65b6e (diff) | |
download | SCons-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-x | bin/svn-bisect.py | 3 |
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 |