summaryrefslogtreecommitdiff
path: root/serializer.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2017-06-04 14:27:02 +0200
committerAnthon van der Neut <anthon@mnt.org>2017-06-04 14:27:02 +0200
commita0ff58af5242fddc39236168b18aafb7c8b324da (patch)
treeb7ba0da53b720dde7be6e3b32ad927456c6f5dcf /serializer.py
parent6ba66a44af41d072f5ceddfcdf2c21611c2a7cd0 (diff)
downloadruamel.yaml-a0ff58af5242fddc39236168b18aafb7c8b324da.tar.gz
initial version with YAML class0.15.0
Some new tests are still required
Diffstat (limited to 'serializer.py')
-rw-r--r--serializer.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/serializer.py b/serializer.py
index bda778f..f224e96 100644
--- a/serializer.py
+++ b/serializer.py
@@ -56,11 +56,15 @@ class Serializer(object):
@property
def emitter(self):
# type: () -> Any
+ if hasattr(self.dumper, 'typ'):
+ return self.dumper.emitter
return self.dumper._emitter
@property
def resolver(self):
# type: () -> Any
+ if hasattr(self.dumper, 'typ'):
+ self.dumper.resolver
return self.dumper._resolver
def open(self):