# HG changeset patch # User Martin von Zweigbergk # Date 2017-03-21 04:40:28 # Node ID 61ff3852f6ed8f4e73583e5bec0a34cddce599fd # Parent 2b599f5468a431ec45cbe0098e0ff7796d79a8ac pure: use int instead of long Similar to the recent 73aa13bc8dac (revlog: use int instead of long, 2017-03-19). diff --git a/mercurial/pure/parsers.py b/mercurial/pure/parsers.py --- a/mercurial/pure/parsers.py +++ b/mercurial/pure/parsers.py @@ -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):