[PATCH 2 of 7] py3: alias long to int on Python 3
Yuya Nishihara
yuya at tcha.org
Wed May 3 22:06:39 EDT 2017
On Wed, 03 May 2017 15:29:21 +0530, Pulkit Goyal wrote:
> # HG changeset patch
> # User Pulkit Goyal <7895pulkit at gmail.com>
> # Date 1492698097 -19800
> # Thu Apr 20 19:51:37 2017 +0530
> # Node ID af5154fdc7d485b090ba1bed3bb42addb7836469
> # Parent 2069dd90c6afe4e13ab73cbbf572fd4b50680def
> py3: alias long to int on Python 3
Queued 2, part of 3, 4, 5, and 7, thanks.
> --- a/mercurial/templatefilters.py Sat Apr 08 11:02:37 2017 +0530
> +++ b/mercurial/templatefilters.py Thu Apr 20 19:51:37 2017 +0530
> @@ -16,6 +16,7 @@
> encoding,
> hbisect,
> node,
> + pycompat,
> registrar,
> templatekw,
> util,
> @@ -24,6 +25,9 @@
> urlerr = util.urlerr
> urlreq = util.urlreq
>
> +if pycompat.ispy3:
> + long = int
I prefer defining pycompat.long or something (like 'unicode'), but given
'long' isn't widely used, this should be okay.
More information about the Mercurial-devel
mailing list