diff options
| author | Benjamin Peterson <benjamin@python.org> | 2009-10-15 01:49:37 (GMT) | 
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2009-10-15 01:49:37 (GMT) | 
| commit | 447dc1565826c879faf544cda4bdd62546545166 (patch) | |
| tree | 997fbd5b448d05eabb1d16617bce73dcae6e2922 /Lib/tokenize.py | |
| parent | e537adfd080ffe57e9f202a931cf70e22213e8a4 (diff) | |
| download | cpython-447dc1565826c879faf544cda4bdd62546545166.zip cpython-447dc1565826c879faf544cda4bdd62546545166.tar.gz cpython-447dc1565826c879faf544cda4bdd62546545166.tar.bz2  | |
use floor division and add a test that exercises the tabsize codepath
Diffstat (limited to 'Lib/tokenize.py')
| -rw-r--r-- | Lib/tokenize.py | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tokenize.py b/Lib/tokenize.py index ad3cf9d..686ad66 100644 --- a/Lib/tokenize.py +++ b/Lib/tokenize.py @@ -319,7 +319,7 @@ def generate_tokens(readline):                  if line[pos] == ' ':                      column = column + 1                  elif line[pos] == '\t': -                    column = (column/tabsize + 1)*tabsize +                    column = (column//tabsize + 1)*tabsize                  elif line[pos] == '\f':                      column = 0                  else:  | 
