diff --git a/Tools/idle/AutoIndent.py b/Tools/idle/AutoIndent.py index 66a0aec9b87..87f75c12ee4 100644 --- a/Tools/idle/AutoIndent.py +++ b/Tools/idle/AutoIndent.py @@ -495,7 +495,7 @@ def classifyws(s, tabwidth): effective = effective + 1 elif ch == '\t': raw = raw + 1 - effective = (effective / tabwidth + 1) * tabwidth + effective = (int(effective / tabwidth) + 1) * tabwidth else: break return raw, effective