summaryrefslogtreecommitdiff
path: root/coverage/phystokens.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-08-11 10:47:12 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-08-11 10:47:12 -0400
commit3372864a37985176d216e508c2807e0d4b7b717a (patch)
treee43519b41b7daf7c144d6ef1628b924b819158ea /coverage/phystokens.py
parent43e24381c30e711025a57de31ebf9ee91a444d8b (diff)
downloadpython-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.py2
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):