]> granicus.if.org Git - python/commitdiff
smart_backspace_event(): remove now-pointless int() call.
authorTim Peters <tim.peters@gmail.com>
Wed, 23 Jan 2002 16:57:55 +0000 (16:57 +0000)
committerTim Peters <tim.peters@gmail.com>
Wed, 23 Jan 2002 16:57:55 +0000 (16:57 +0000)
Bugfix candidate:  the current state of AutoIdent.py should be in 2.2.1.

Tools/idle/AutoIndent.py

index 15b5011d9ed27f4bb563b9b61c158d77678b1ac5..f8bb847b2f59f72b396e7b8abb68c48b82111897 100644 (file)
@@ -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]