changeset 31230:37596c980662

parsers: alias long to int on Python 3
author Pulkit Goyal <7895pulkit@gmail.com>
date Wed, 08 Mar 2017 00:45:19 +0530
parents f8e06821c118
children 2faf233b88e4
files mercurial/pure/parsers.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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