Mercurial > public > mercurial-scm > hg
diff mercurial/templatefilters.py @ 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 | 2ab7578e685b |
children | 964e7427a691 |
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: