From: Steven M. Gava Date: Wed, 23 Jan 2002 05:15:17 +0000 (+0000) Subject: fix for python2.2 -Qnew division error, X-Git-Tag: v2.3c1~6801 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d91b0d6a65a0b6d0935a4e3ea131fa78c43a690d;p=thirdparty%2FPython%2Fcpython.git fix for python2.2 -Qnew division error, thanks Tim! --- diff --git a/Lib/idlelib/AutoIndent.py b/Lib/idlelib/AutoIndent.py index eff398b52702..4fbbedf4e047 100644 --- a/Lib/idlelib/AutoIndent.py +++ b/Lib/idlelib/AutoIndent.py @@ -462,7 +462,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