Tim sez "Bugfix candidate: the current state of AutoIdent.py
should be in 2.2.1."
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]
effective = effective + 1
elif ch == '\t':
raw = raw + 1
- effective = (effective / tabwidth + 1) * tabwidth
+ effective = (effective // tabwidth + 1) * tabwidth
else:
break
return raw, effective