summaryrefslogtreecommitdiff
path: root/_test/test_tag.py
diff options
context:
space:
mode:
Diffstat (limited to '_test/test_tag.py')
-rw-r--r--_test/test_tag.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/_test/test_tag.py b/_test/test_tag.py
index 31a192e..3fd1e05 100644
--- a/_test/test_tag.py
+++ b/_test/test_tag.py
@@ -11,7 +11,7 @@ def register_xxx(**kw):
class XXX(yaml.comments.CommentedMap):
@staticmethod
def yaml_dump(dumper, data):
- return dumper.represent_mapping(u'!xxx', data)
+ return dumper.represent_mapping('!xxx', data)
@classmethod
def yaml_load(cls, constructor, node):
@@ -19,7 +19,7 @@ def register_xxx(**kw):
yield data
constructor.construct_mapping(node, data)
- yaml.add_constructor(u'!xxx', XXX.yaml_load, constructor=yaml.RoundTripConstructor)
+ yaml.add_constructor('!xxx', XXX.yaml_load, constructor=yaml.RoundTripConstructor)
yaml.add_representer(XXX, XXX.yaml_dump, representer=yaml.RoundTripRepresenter)