# HG changeset patch # User Benoit Boissinot # Date 1192112352 -7200 # Node ID f2ca8d2c988f25fe77353675920fcdb2725a381a # Parent 9d77f2b47eb74b380e371e69df6a8de174e7b6f1 explicitely use integer division diff -r 9d77f2b47eb7 -r f2ca8d2c988f mercurial/util.py --- a/mercurial/util.py Thu Oct 11 12:16:55 2007 +0200 +++ b/mercurial/util.py Thu Oct 11 16:19:12 2007 +0200 @@ -484,7 +484,7 @@ l = len(pats) if l < 2: raise - a, b = matchfn(pats[:l/2], tail), matchfn(pats[l/2:], tail) + a, b = matchfn(pats[:l//2], tail), matchfn(pats[l//2:], tail) return lambda s: a(s) or b(s) except re.error: for k, p in pats: