parsers: alias long to int on Python 3
authorPulkit Goyal <7895pulkit@gmail.com>
Wed, 08 Mar 2017 00:45:19 +0530
changeset 31220 37596c980662
parent 31219 f8e06821c118
child 31221 2faf233b88e4
parsers: alias long to int on Python 3
mercurial/pure/parsers.py
--- a/mercurial/pure/parsers.py	Wed Mar 08 00:40:15 2017 +0530
+++ b/mercurial/pure/parsers.py	Wed Mar 08 00:45:19 2017 +0530
@@ -14,6 +14,9 @@
 from . import pycompat
 stringio = pycompat.stringio
 
+if pycompat.ispy3:
+    long = int
+
 _pack = struct.pack
 _unpack = struct.unpack
 _compress = zlib.compress