From: Tim Peters Date: Wed, 23 Jan 2002 05:02:20 +0000 (+0000) Subject: classifyws(): Fix a "/" to work under -Qnew (as well as without it). X-Git-Tag: v2.3c1~6802 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4509168dbf56a3b400db6cddfe12796aaa00e36b;p=python classifyws(): Fix a "/" to work under -Qnew (as well as without it). Bugfix candidate! --- diff --git a/Tools/idle/AutoIndent.py b/Tools/idle/AutoIndent.py index 66a0aec9b8..87f75c12ee 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