diff mercurial/revset.py @ 15791:a814f8fcc65a

Use explicit integer division Found by running the test suite with the -3 flag to show places where we have int / int division that can be replaced with int // int.
author Martin Geisler <mg@aragost.com>
date Sun, 08 Jan 2012 18:15:54 +0100
parents 9b822edecb4c
children 33ca11b010e2
line wrap: on
line diff
--- a/mercurial/revset.py	Sun Jan 08 17:57:25 2012 +0100
+++ b/mercurial/revset.py	Sun Jan 08 18:15:54 2012 +0100
@@ -1108,7 +1108,7 @@
             return '(0-0)' # a minimal way to represent an empty set
         if l == 1:
             return argtype(t, s[0])
-        m = l / 2
+        m = l // 2
         return '(%s or %s)' % (listexp(s[:m], t), listexp(s[m:], t))
 
     ret = ''