pure: use int instead of long
Similar to the recent 73aa13bc8dac (revlog: use int instead of long,
2017-03-19).
--- 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):