summaryrefslogtreecommitdiff
path: root/tokens.py
diff options
context:
space:
mode:
Diffstat (limited to 'tokens.py')
-rw-r--r--tokens.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tokens.py b/tokens.py
index e5a444d..c86dee4 100644
--- a/tokens.py
+++ b/tokens.py
@@ -255,10 +255,10 @@ class CommentToken(Token):
def __repr__(self):
# type: () -> Any
- v = self.value
+ v = u'{!r}'.format(self.value)
if SHOWLINES:
try:
v += u', line: ' + str(self.start_mark.line)
except:
pass
- return 'CommentToken({!r})'.format(v)
+ return 'CommentToken({})'.format(v)