[PATCH 2 of 7] py3: alias long to int on Python 3
Pulkit Goyal
7895pulkit at gmail.com
Wed May 3 05:59:21 EDT 2017
# 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
diff -r 2069dd90c6af -r af5154fdc7d4 mercurial/templatefilters.py
--- 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
+
# filters are callables like:
# fn(obj)
# with:
More information about the Mercurial-devel
mailing list