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 | 3372864a37985176d216e508c2807e0d4b7b717a (patch) | |
tree | e43519b41b7daf7c144d6ef1628b924b819158ea /coverage/phystokens.py | |
parent | 43e24381c30e711025a57de31ebf9ee91a444d8b (diff) | |
download | python-coveragepy-3372864a37985176d216e508c2807e0d4b7b717a.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 92da8d3..7092d39 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): |