summaryrefslogtreecommitdiff
path: root/comments.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2017-07-28 07:22:31 +0200
committerAnthon van der Neut <anthon@mnt.org>2017-07-28 07:22:31 +0200
commit85e515c1943daea9ee7220b00882b13d7afc98cb (patch)
treee125a3e57229dd19fbf152abff0ebad356dbc58c /comments.py
parent2565253f6b61d567280027719181c39250f8a0bb (diff)
downloadruamel.yaml-85e515c1943daea9ee7220b00882b13d7afc98cb.tar.gz
fix for issue #143: handling single excl mark tags0.15.22
There were no tests for roundtripping tags for non-registered objects
Diffstat (limited to 'comments.py')
-rw-r--r--comments.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/comments.py b/comments.py
index 9535ff5..f8e68a6 100644
--- a/comments.py
+++ b/comments.py
@@ -176,6 +176,9 @@ class Tag(object):
# type: () -> None
self.value = None
+ def __repr__(self):
+ return '{0.__class__.__name__}({0.value!r})'.format(self)
+
class CommentedBase(object):
@property