diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2016-01-07 20:07:04 -0500 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2016-01-07 20:07:04 -0500 |
| commit | 702e63cc4ae2bd0475bf8100fc7b0bbe14713b4a (patch) | |
| tree | fd4e636268a112815ce6f1e3ed44454e20ce5e0a /coverage/phystokens.py | |
| parent | 7650c3d69c945fc204b60267bf88bcd77b52f13b (diff) | |
| parent | 3e2625dd17674339073c6afc4da6ba3b99932e4c (diff) | |
| download | python-coveragepy-702e63cc4ae2bd0475bf8100fc7b0bbe14713b4a.tar.gz | |
Branch analysis is now done with AST instead of bytecode
Diffstat (limited to 'coverage/phystokens.py')
| -rw-r--r-- | coverage/phystokens.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/coverage/phystokens.py b/coverage/phystokens.py index 5aa3402..5e80ed5 100644 --- a/coverage/phystokens.py +++ b/coverage/phystokens.py @@ -92,8 +92,7 @@ def source_token_lines(source): line = [] col = 0 - # The \f is because of http://bugs.python.org/issue19035 - source = source.expandtabs(8).replace('\r\n', '\n').replace('\f', ' ') + source = source.expandtabs(8).replace('\r\n', '\n') tokgen = generate_tokens(source) for ttype, ttext, (_, scol), (_, ecol), _ in phys_tokens(tokgen): |
