summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven M. Gava <elguavas@python.net>2002-01-23 05:15:17 (GMT)
committerSteven M. Gava <elguavas@python.net>2002-01-23 05:15:17 (GMT)
commitd91b0d6a65a0b6d0935a4e3ea131fa78c43a690d (patch)
tree80ad920a7417369f96f3a2de660e26e3aa019179
parent4509168dbf56a3b400db6cddfe12796aaa00e36b (diff)
downloadcpython-d91b0d6a65a0b6d0935a4e3ea131fa78c43a690d.zip
cpython-d91b0d6a65a0b6d0935a4e3ea131fa78c43a690d.tar.gz
cpython-d91b0d6a65a0b6d0935a4e3ea131fa78c43a690d.tar.bz2
fix for python2.2 -Qnew division error,
thanks Tim!
-rw-r--r--Lib/idlelib/AutoIndent.py2
1 files changed, 1 insertions, 1 deletions
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