mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
fix for python2.2 -Qnew division error,
thanks Tim!
This commit is contained in:
parent
4509168dbf
commit
d91b0d6a65
1 changed files with 1 additions and 1 deletions
|
@ -462,7 +462,7 @@ def classifyws(s, tabwidth):
|
|||
effective = effective + 1
|
||||
elif ch == '\t':
|
||||
raw = raw + 1
|
||||
effective = (effective / tabwidth + 1) * tabwidth
|
||||
effective = (int(effective / tabwidth) + 1) * tabwidth
|
||||
else:
|
||||
break
|
||||
return raw, effective
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue