changeset 32126:e37fd5be0fed

py3: alias long to int on Python 3
author Pulkit Goyal <7895pulkit@gmail.com>
date Thu, 20 Apr 2017 19:51:37 +0530
parents efcaf6ab86f4
children 964e7427a691
files mercurial/templatefilters.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/templatefilters.py	Wed May 03 09:41:55 2017 -0400
+++ 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: