diff mercurial/util.py @ 5454:f2ca8d2c988f

explicitely use integer division
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Thu, 11 Oct 2007 16:19:12 +0200
parents c728424d44c6
children 0c43f87baba3
line wrap: on
line diff
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -484,7 +484,7 @@ def _matcher(canonroot, cwd, names, inc,
             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: