diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-08-11 10:47:12 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-08-11 10:47:12 -0400 |
commit | 788a4fb065c4b1131ac2aee29a7e84f42f67f3f3 (patch) | |
tree | 129c15670d3370c7ee8dbe9080da06ee6712c80d /coverage/phystokens.py | |
parent | d0d4fa8415a7a64cebe1e490ec0a38a499de95da (diff) | |
download | python-coveragepy-git-788a4fb065c4b1131ac2aee29a7e84f42f67f3f3.tar.gz |
Make sure source_token_lines always returns Unicode strings for the token text.
Diffstat (limited to 'coverage/phystokens.py')
-rw-r--r-- | coverage/phystokens.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/phystokens.py b/coverage/phystokens.py index 92da8d32..7092d39e 100644 --- a/coverage/phystokens.py +++ b/coverage/phystokens.py @@ -109,7 +109,7 @@ def source_token_lines(source): mark_end = False else: if mark_start and scol > col: - line.append(("ws", " " * (scol - col))) + line.append(("ws", u" " * (scol - col))) mark_start = False tok_class = tokenize.tok_name.get(ttype, 'xx').lower()[:3] if ttype == token.NAME and keyword.iskeyword(ttext): |