From: Michael W. Hudson Date: Mon, 28 Jan 2002 15:10:52 +0000 (+0000) Subject: It's merge time! X-Git-Tag: v2.2.1c1~226 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=abab74038d1f289d4b76cc44ddc4c66170e15522;p=thirdparty%2FPython%2Fcpython.git It's merge time! Tim sez "Bugfix candidate: the current state of AutoIdent.py should be in 2.2.1." --- diff --git a/Tools/idle/AutoIndent.py b/Tools/idle/AutoIndent.py index 66a0aec9b878..f8bb847b2f59 100644 --- a/Tools/idle/AutoIndent.py +++ b/Tools/idle/AutoIndent.py @@ -171,7 +171,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] @@ -495,7 +495,7 @@ def classifyws(s, tabwidth): effective = effective + 1 elif ch == '\t': raw = raw + 1 - effective = (effective / tabwidth + 1) * tabwidth + effective = (effective // tabwidth + 1) * tabwidth else: break return raw, effective