summaryrefslogtreecommitdiff
path: root/coverage/phystokens.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-01-05 14:48:41 -0500
committerNed Batchelder <ned@nedbatchelder.com>2016-01-05 14:48:41 -0500
commitd1c92d8e6b066a7b16d625b566853821afe8b46c (patch)
tree0f16a26e769aa4ee5e9888806152d7a78645a8c4 /coverage/phystokens.py
parentbc31b68776bb76ac9a650caa3c7a04c84817093d (diff)
downloadpython-coveragepy-git-d1c92d8e6b066a7b16d625b566853821afe8b46c.tar.gz
Fix another form-feed problem, #461
Diffstat (limited to 'coverage/phystokens.py')
-rw-r--r--coverage/phystokens.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/coverage/phystokens.py b/coverage/phystokens.py
index 5aa3402c..5e80ed54 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):