pure: use int instead of long
authorMartin von Zweigbergk <martinvonz@google.com>
Mon, 20 Mar 2017 21:40:28 -0700
changeset 31535 61ff3852f6ed
parent 31534 2b599f5468a4
child 31536 160e7ad941e9
pure: use int instead of long Similar to the recent 73aa13bc8dac (revlog: use int instead of long, 2017-03-19).
mercurial/pure/parsers.py
--- a/mercurial/pure/parsers.py	Mon Mar 13 22:30:07 2017 -0700
+++ b/mercurial/pure/parsers.py	Mon Mar 20 21:40:28 2017 -0700
@@ -14,8 +14,6 @@
 from . import pycompat
 stringio = pycompat.stringio
 
-if pycompat.ispy3:
-    long = int
 
 _pack = struct.pack
 _unpack = struct.unpack
@@ -37,7 +35,7 @@
     return int(q & 0xFFFF)
 
 def offset_type(offset, type):
-    return long(long(offset) << 16 | type)
+    return int(int(offset) << 16 | type)
 
 class BaseIndexObject(object):
     def __len__(self):