summaryrefslogtreecommitdiff
path: root/tokens.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2017-08-05 15:22:58 +0200
committerAnthon van der Neut <anthon@mnt.org>2017-08-05 15:22:58 +0200
commit51de865df2d66215b5e904813f16fa84a90b215a (patch)
treed033051d8b903586d852b30fed20945dd1056ffe /tokens.py
parentb2b5c88bf7af6d8d3e1815f78fbb3bd5988ab498 (diff)
downloadruamel.yaml-51de865df2d66215b5e904813f16fa84a90b215a.tar.gz
more useful CommentToken dumping
Diffstat (limited to 'tokens.py')
-rw-r--r--tokens.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tokens.py b/tokens.py
index 3f9c33b..aff531c 100644
--- a/tokens.py
+++ b/tokens.py
@@ -241,3 +241,6 @@ class CommentToken(Token):
# type: () -> None
if hasattr(self, 'pre_done'):
delattr(self, 'pre_done')
+
+ def __repr__(self):
+ return 'CommentToken({!r})'.format(self.value)