revsetlang: portably turn int into bytestring
authorAugie Fackler <augie@google.com>
Sun, 19 Mar 2017 01:03:53 -0400
changeset 31565 553ad16b274f
parent 31564 102f291807c9
child 31566 c6df6a23dfe5
revsetlang: portably turn int into bytestring
mercurial/revsetlang.py
--- a/mercurial/revsetlang.py	Mon Mar 20 16:34:12 2017 -0700
+++ b/mercurial/revsetlang.py	Sun Mar 19 01:03:53 2017 -0400
@@ -629,7 +629,7 @@
         elif l == 1:
             return argtype(t, s[0])
         elif t == 'd':
-            return "_intlist('%s')" % "\0".join(str(int(a)) for a in s)
+            return "_intlist('%s')" % "\0".join('%d' % int(a) for a in s)
         elif t == 's':
             return "_list('%s')" % "\0".join(s)
         elif t == 'n':