mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
revlog: use int instead of long
By my reading of PEP 237[0], this is completely safe and has been since Python 2.2. 0: https://www.python.org/dev/peps/pep-0237/
This commit is contained in:
parent
67b9f85199
commit
e0f1b901d8
@ -117,7 +117,7 @@ def gettype(q):
|
||||
def offset_type(offset, type):
|
||||
if (type & ~REVIDX_KNOWN_FLAGS) != 0:
|
||||
raise ValueError('unknown revlog index flags')
|
||||
return long(long(offset) << 16 | type)
|
||||
return int(int(offset) << 16 | type)
|
||||
|
||||
_nullhash = hashlib.sha1(nullid)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user