diff options
author | Steven M. Gava <elguavas@python.net> | 2002-01-23 23:56:41 (GMT) |
---|---|---|
committer | Steven M. Gava <elguavas@python.net> | 2002-01-23 23:56:41 (GMT) |
commit | 8cf2704a59421d2cbb1ce1a52b21c1b158064d84 (patch) | |
tree | 23a2b8570ad9123e1f7cf6ac05f18435d5aee201 /Lib | |
parent | 8b0ee24e229be7f57837677c48698f4f470d6637 (diff) | |
download | cpython-8cf2704a59421d2cbb1ce1a52b21c1b158064d84.zip cpython-8cf2704a59421d2cbb1ce1a52b21c1b158064d84.tar.gz cpython-8cf2704a59421d2cbb1ce1a52b21c1b158064d84.tar.bz2 |
staying current with python idle fixes
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/idlelib/AutoIndent.py | 4 |
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 |