mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
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:
parent
43b73290d8
commit
299fc67d57
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user