|
@@ -18,7 +18,6 @@ for template builders that want to adjust the look and feel of the math.
|
|
See README for more details.
|
|
See README for more details.
|
|
"""
|
|
"""
|
|
|
|
|
|
-from __future__ import print_function
|
|
|
|
import os
|
|
import os
|
|
import re
|
|
import re
|
|
|
|
|
|
@@ -55,7 +54,7 @@ def binary_search(match_tuple, ignore_within):
|
|
# Find first value in array where predicate is False
|
|
# Find first value in array where predicate is False
|
|
# predicate function: tupleList[mid][0] < t[index]
|
|
# predicate function: tupleList[mid][0] < t[index]
|
|
while lo < hi:
|
|
while lo < hi:
|
|
- mid = lo + (hi-lo+1)/2
|
|
|
|
|
|
+ mid = lo + (hi-lo+1)//2
|
|
if ignore_within[mid][0] < match_tuple[0]:
|
|
if ignore_within[mid][0] < match_tuple[0]:
|
|
lo = mid
|
|
lo = mid
|
|
else:
|
|
else:
|