From d91b0d6a65a0b6d0935a4e3ea131fa78c43a690d Mon Sep 17 00:00:00 2001
From: "Steven M. Gava" <elguavas@python.net>
Date: Wed, 23 Jan 2002 05:15:17 +0000
Subject: fix for python2.2 -Qnew division error, thanks Tim!

---
 Lib/idlelib/AutoIndent.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Lib/idlelib/AutoIndent.py b/Lib/idlelib/AutoIndent.py
index eff398b..4fbbedf 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
-- 
cgit v0.12