Commit d91b0d6a authored by Steven M. Gava's avatar Steven M. Gava

fix for python2.2 -Qnew division error,

thanks Tim!
parent 4509168d
...@@ -462,7 +462,7 @@ def classifyws(s, tabwidth): ...@@ -462,7 +462,7 @@ def classifyws(s, tabwidth):
effective = effective + 1 effective = effective + 1
elif ch == '\t': elif ch == '\t':
raw = raw + 1 raw = raw + 1
effective = (effective / tabwidth + 1) * tabwidth effective = (int(effective / tabwidth) + 1) * tabwidth
else: else:
break break
return raw, effective return raw, effective
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment