summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-01-23 05:02:20 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-01-23 05:02:20 (GMT)
commit4509168dbf56a3b400db6cddfe12796aaa00e36b (patch)
tree3fd25bb6ed286626c80cdbba1fd637da47494d60 /Tools
parent685d46fee1fef5848956225365ea7840b55b95ad (diff)
downloadcpython-4509168dbf56a3b400db6cddfe12796aaa00e36b.zip
cpython-4509168dbf56a3b400db6cddfe12796aaa00e36b.tar.gz
cpython-4509168dbf56a3b400db6cddfe12796aaa00e36b.tar.bz2
classifyws(): Fix a "/" to work under -Qnew (as well as without it).
Bugfix candidate!
Diffstat (limited to 'Tools')
-rw-r--r--Tools/idle/AutoIndent.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/idle/AutoIndent.py b/Tools/idle/AutoIndent.py
index 66a0aec..87f75c1 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