Show More
@@ -48,7 +48,7 b' Uses:' | |||||
48 | different branches |
|
48 | different branches | |
49 | ''' |
|
49 | ''' | |
50 |
|
50 | |||
51 | from __future__ import absolute_import |
|
51 | from __future__ import absolute_import, division | |
52 |
|
52 | |||
53 | from .node import nullrev |
|
53 | from .node import nullrev | |
54 | from . import ( |
|
54 | from . import ( | |
@@ -57,12 +57,12 b' from . import (' | |||||
57 | ) |
|
57 | ) | |
58 |
|
58 | |||
59 | _size = 448 # 70 chars b85-encoded |
|
59 | _size = 448 # 70 chars b85-encoded | |
60 | _bytes = _size / 8 |
|
60 | _bytes = _size // 8 | |
61 | _depthbits = 24 |
|
61 | _depthbits = 24 | |
62 | _depthbytes = _depthbits / 8 |
|
62 | _depthbytes = _depthbits // 8 | |
63 | _vecbytes = _bytes - _depthbytes |
|
63 | _vecbytes = _bytes - _depthbytes | |
64 | _vecbits = _vecbytes * 8 |
|
64 | _vecbits = _vecbytes * 8 | |
65 | _radius = (_vecbits - 30) / 2 # high probability vectors are related |
|
65 | _radius = (_vecbits - 30) // 2 # high probability vectors are related | |
66 |
|
66 | |||
67 |
|
67 | |||
68 | def _bin(bs): |
|
68 | def _bin(bs): | |
@@ -131,7 +131,7 b' def _mergevec(x, y, c):' | |||||
131 | if hdist > ddist: |
|
131 | if hdist > ddist: | |
132 | # if delta = 10 and hdist = 100, then we need to go up 55 steps |
|
132 | # if delta = 10 and hdist = 100, then we need to go up 55 steps | |
133 | # to the ancestor and down 45 |
|
133 | # to the ancestor and down 45 | |
134 | changes = (hdist - ddist + 1) / 2 |
|
134 | changes = (hdist - ddist + 1) // 2 | |
135 | else: |
|
135 | else: | |
136 | # must make at least one change |
|
136 | # must make at least one change | |
137 | changes = 1 |
|
137 | changes = 1 |
General Comments 0
You need to be logged in to leave comments.
Login now