summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven M. Gava <elguavas@python.net>2002-01-23 23:56:41 (GMT)
committerSteven M. Gava <elguavas@python.net>2002-01-23 23:56:41 (GMT)
commit8cf2704a59421d2cbb1ce1a52b21c1b158064d84 (patch)
tree23a2b8570ad9123e1f7cf6ac05f18435d5aee201
parent8b0ee24e229be7f57837677c48698f4f470d6637 (diff)
downloadcpython-8cf2704a59421d2cbb1ce1a52b21c1b158064d84.zip
cpython-8cf2704a59421d2cbb1ce1a52b21c1b158064d84.tar.gz
cpython-8cf2704a59421d2cbb1ce1a52b21c1b158064d84.tar.bz2
staying current with python idle fixes
-rw-r--r--Lib/idlelib/AutoIndent.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/AutoIndent.py b/Lib/idlelib/AutoIndent.py
index 4fbbedf..3432bf0 100644
--- a/Lib/idlelib/AutoIndent.py
+++ b/Lib/idlelib/AutoIndent.py
@@ -138,7 +138,7 @@ class AutoIndent:
expand, tabwidth = string.expandtabs, self.tabwidth
have = len(expand(chars, tabwidth))
assert have > 0
- want = int((have - 1) / self.indentwidth) * self.indentwidth
+ want = ((have - 1) // self.indentwidth) * self.indentwidth
ncharsdeleted = 0
while 1:
chars = chars[:-1]
@@ -462,7 +462,7 @@ def classifyws(s, tabwidth):
effective = effective + 1
elif ch == '\t':
raw = raw + 1
- effective = (int(effective / tabwidth) + 1) * tabwidth
+ effective = (effective // tabwidth + 1) * tabwidth
else:
break
return raw, effective