Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b0ee24 commit 8cf2704Copy full SHA for 8cf2704
1 file changed
Lib/idlelib/AutoIndent.py
@@ -138,7 +138,7 @@ def smart_backspace_event(self, event):
138
expand, tabwidth = string.expandtabs, self.tabwidth
139
have = len(expand(chars, tabwidth))
140
assert have > 0
141
- want = int((have - 1) / self.indentwidth) * self.indentwidth
+ want = ((have - 1) // self.indentwidth) * self.indentwidth
142
ncharsdeleted = 0
143
while 1:
144
chars = chars[:-1]
@@ -462,7 +462,7 @@ def classifyws(s, tabwidth):
462
effective = effective + 1
463
elif ch == '\t':
464
raw = raw + 1
465
- effective = (int(effective / tabwidth) + 1) * tabwidth
+ effective = (effective // tabwidth + 1) * tabwidth
466
else:
467
break
468
return raw, effective
0 commit comments