diff options
author | Anthon van der Neut <anthon@mnt.org> | 2017-08-05 15:22:58 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2017-08-05 15:22:58 +0200 |
commit | 51de865df2d66215b5e904813f16fa84a90b215a (patch) | |
tree | d033051d8b903586d852b30fed20945dd1056ffe | |
parent | b2b5c88bf7af6d8d3e1815f78fbb3bd5988ab498 (diff) | |
download | ruamel.yaml-51de865df2d66215b5e904813f16fa84a90b215a.tar.gz |
more useful CommentToken dumping
-rw-r--r-- | tokens.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) |