From: Tim Peters Date: Wed, 23 Jan 2002 16:57:55 +0000 (+0000) Subject: smart_backspace_event(): remove now-pointless int() call. X-Git-Tag: v2.3c1~6794 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bd8ce79390a1d8dbfdb5dc1430d83cb4304e7d44;p=python smart_backspace_event(): remove now-pointless int() call. 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 15b5011d9e..f8bb847b2f 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]