Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d91b0d6

Browse files
author
Steven M. Gava
committed
fix for python2.2 -Qnew division error,
thanks Tim!
1 parent 4509168 commit d91b0d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/idlelib/AutoIndent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ def classifyws(s, tabwidth):
462462
effective = effective + 1
463463
elif ch == '\t':
464464
raw = raw + 1
465-
effective = (effective / tabwidth + 1) * tabwidth
465+
effective = (int(effective / tabwidth) + 1) * tabwidth
466466
else:
467467
break
468468
return raw, effective

0 commit comments

Comments
 (0)