mercurial/formatter.py
changeset 31396 ab3e9eab754f
parent 31298 59d09565ac77
child 31782 654e9a1c8a6c
--- a/mercurial/formatter.py	Sun Mar 12 21:56:39 2017 -0700
+++ b/mercurial/formatter.py	Mon Mar 13 18:31:29 2017 -0700
@@ -295,7 +295,7 @@
         return 'true'
     elif v is False:
         return 'false'
-    elif isinstance(v, (int, float)):
+    elif isinstance(v, (int, long, float)):
         return str(v)
     else:
         return '"%s"' % encoding.jsonescape(v)