summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2017-06-27 11:52:49 +0200
committerAnthon van der Neut <anthon@mnt.org>2017-06-27 11:52:49 +0200
commit226b75e4a2566618a31cbfb4abbc9a2ffed002b1 (patch)
tree76896d6e0465fd15a7b0521784dc7a259b1c0f58 /main.py
parent11df934dd3581f0bb7be8a9d4af3c1dd2559e6be (diff)
downloadruamel.yaml-226b75e4a2566618a31cbfb4abbc9a2ffed002b1.tar.gz
Use selected Representer/Resolver with C dump0.15.15
Fix issue #135 Please close this issue if you can confirm it solves the reported problem
Diffstat (limited to 'main.py')
-rw-r--r--main.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/main.py b/main.py
index b052f01..2a5e6bb 100644
--- a/main.py
+++ b/main.py
@@ -419,9 +419,10 @@ class YAML(object):
explicit_end=explicit_end,
version=version, tags=tags)
selfx._emitter = selfx._serializer = selfx._representer = selfx
- Representer.__init__(selfx, default_style=default_style,
- default_flow_style=default_flow_style)
- Resolver.__init__(selfx)
+ print(type(selfx), self.Representer, rslvr)
+ self.Representer.__init__(selfx, default_style=default_style,
+ default_flow_style=default_flow_style)
+ rslvr.__init__(selfx)
self._stream = stream
dumper = XDumper(stream)
self._emitter = self._serializer = dumper