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