Source

SCons / bin / svn-bisect.py

Diff from to

File bin/svn-bisect.py

 #!/usr/bin/env python
 # -*- Python -*-
+from __future__ import division
 
 import sys
 from math import log, ceil
 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