Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bd8ce79

Browse files
committed
smart_backspace_event(): remove now-pointless int() call.
Bugfix candidate: the current state of AutoIdent.py should be in 2.2.1.
1 parent ff06671 commit bd8ce79

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tools/idle/AutoIndent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def smart_backspace_event(self, event):
171171
expand, tabwidth = string.expandtabs, self.tabwidth
172172
have = len(expand(chars, tabwidth))
173173
assert have > 0
174-
want = int((have - 1) // self.indentwidth) * self.indentwidth
174+
want = ((have - 1) // self.indentwidth) * self.indentwidth
175175
ncharsdeleted = 0
176176
while 1:
177177
chars = chars[:-1]

0 commit comments

Comments
 (0)