Show More
@@ -14,8 +14,6 b' from .node import nullid' | |||||
14 | from . import pycompat |
|
14 | from . import pycompat | |
15 | stringio = pycompat.stringio |
|
15 | stringio = pycompat.stringio | |
16 |
|
16 | |||
17 | if pycompat.ispy3: |
|
|||
18 | long = int |
|
|||
19 |
|
17 | |||
20 | _pack = struct.pack |
|
18 | _pack = struct.pack | |
21 | _unpack = struct.unpack |
|
19 | _unpack = struct.unpack | |
@@ -37,7 +35,7 b' def gettype(q):' | |||||
37 | return int(q & 0xFFFF) |
|
35 | return int(q & 0xFFFF) | |
38 |
|
36 | |||
39 | def offset_type(offset, type): |
|
37 | def offset_type(offset, type): | |
40 |
return |
|
38 | return int(int(offset) << 16 | type) | |
41 |
|
39 | |||
42 | class BaseIndexObject(object): |
|
40 | class BaseIndexObject(object): | |
43 | def __len__(self): |
|
41 | def __len__(self): |
General Comments 0
You need to be logged in to leave comments.
Login now