From abab74038d1f289d4b76cc44ddc4c66170e15522 Mon Sep 17 00:00:00 2001 From: "Michael W. Hudson" Date: Mon, 28 Jan 2002 15:10:52 +0000 Subject: [PATCH] It's merge time! Tim sez "Bugfix candidate: the current state of AutoIdent.py should be in 2.2.1." --- Tools/idle/AutoIndent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.3