mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
smart_backspace_event(): remove now-pointless int() call.
Bugfix candidate: the current state of AutoIdent.py should be in 2.2.1.
This commit is contained in:
parent
ff06671acf
commit
bd8ce79390
1 changed files with 1 additions and 1 deletions
|
|
@ -171,7 +171,7 @@ def smart_backspace_event(self, event):
|
|||
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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue