mirror of
https://github.com/python/cpython.git
synced 2025-11-08 21:52:45 +00:00
classifyws(): Fix a "/" to work under -Qnew (as well as without it).
Bugfix candidate!
This commit is contained in:
parent
685d46fee1
commit
4509168dbf
1 changed files with 1 additions and 1 deletions
|
|
@ -495,7 +495,7 @@ def classifyws(s, tabwidth):
|
||||||
effective = effective + 1
|
effective = effective + 1
|
||||||
elif ch == '\t':
|
elif ch == '\t':
|
||||||
raw = raw + 1
|
raw = raw + 1
|
||||||
effective = (effective / tabwidth + 1) * tabwidth
|
effective = (int(effective / tabwidth) + 1) * tabwidth
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
return raw, effective
|
return raw, effective
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue