bisect: use integer division
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Sat, 28 Mar 2009 17:29:14 +0100
changeset 7902 afddc32b2b3f
parent 7894 caef5fdf1375
child 7903 490e40816cbd
bisect: use integer division
mercurial/hbisect.py
--- a/mercurial/hbisect.py	Fri Mar 27 17:35:00 2009 +0100
+++ b/mercurial/hbisect.py	Sat Mar 28 17:29:14 2009 +0100
@@ -78,7 +78,7 @@
     unskipped = [c for c in candidates if (c not in skip) and (c != badrev)]
     if tot == 1 or not unskipped:
         return ([changelog.node(rev) for rev in candidates], 0, good)
-    perfect = tot / 2
+    perfect = tot // 2
 
     # find the best node to test
     best_rev = None