pure: use int instead of long

Similar to the recent 09e07907253b (revlog: use int instead of long,
2017-03-19).
This commit is contained in:
Martin von Zweigbergk 2017-03-20 21:40:28 -07:00
parent 43b73290d8
commit 299fc67d57

View File

@ -14,8 +14,6 @@ from .node import nullid
from . import pycompat
stringio = pycompat.stringio
if pycompat.ispy3:
long = int
_pack = struct.pack
_unpack = struct.unpack
@ -37,7 +35,7 @@ def gettype(q):
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):