Mercurial > public > mercurial-scm > hg
diff hgext/convert/common.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 | ec8a49c46d7e |
children | ebaa0aa749e2 |
line wrap: on
line diff
--- a/hgext/convert/common.py Sun Jan 08 17:57:25 2012 +0100 +++ b/hgext/convert/common.py Sun Jan 08 18:15:54 2012 +0100 @@ -339,7 +339,7 @@ # Since ARG_MAX is for command line _and_ environment, lower our limit # (and make happy Windows shells while doing this). - return argmax / 2 - 1 + return argmax // 2 - 1 def limit_arglist(self, arglist, cmd, closestdin, *args, **kwargs): cmdlen = len(self._cmdline(cmd, closestdin, *args, **kwargs))