From fb570c528bc87af5e2e54a7eda3820aa90c7a342 Mon Sep 17 00:00:00 2001 From: Barry Steyn Date: Tue, 18 Mar 2014 06:42:41 -0700 Subject: [PATCH] Fixed errors arising from Python 3.x --- render_math/math.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/render_math/math.py b/render_math/math.py index 190b5f6..2bd292e 100644 --- a/render_math/math.py +++ b/render_math/math.py @@ -18,7 +18,6 @@ for template builders that want to adjust the look and feel of the math. See README for more details. """ -from __future__ import print_function import os import re @@ -55,7 +54,7 @@ def binary_search(match_tuple, ignore_within): # Find first value in array where predicate is False # predicate function: tupleList[mid][0] < t[index] while lo < hi: - mid = lo + (hi-lo+1)/2 + mid = lo + (hi-lo+1)//2 if ignore_within[mid][0] < match_tuple[0]: lo = mid else: