summaryrefslogtreecommitdiff
path: root/tokens.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2017-08-15 15:59:38 +0200
committerAnthon van der Neut <anthon@mnt.org>2017-08-15 15:59:38 +0200
commit74222db016e319460cbccc39ddad0180968490f5 (patch)
tree0769506c67cb2b4ee8564e048ec883d371f8fb4d /tokens.py
parente9b75ce00c67f82cd61f738986b50ae85c89ebb9 (diff)
downloadruamel.yaml-74222db016e319460cbccc39ddad0180968490f5.tar.gz
fix comment dumping0.15.31
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)