瀏覽代碼

Fixed errors arising from Python 3.x

Barry Steyn 11 年之前
父節點
當前提交
fb570c528b
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      render_math/math.py

+ 1 - 2
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: