summaryrefslogtreecommitdiff
path: root/representer.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 /representer.py
parent6ba66a44af41d072f5ceddfcdf2c21611c2a7cd0 (diff)
downloadruamel.yaml-a0ff58af5242fddc39236168b18aafb7c8b324da.tar.gz
initial version with YAML class0.15.0
Some new tests are still required
Diffstat (limited to 'representer.py')
-rw-r--r--representer.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/representer.py b/representer.py
index a9e229c..f6eef1b 100644
--- a/representer.py
+++ b/representer.py
@@ -60,6 +60,8 @@ class BaseRepresenter(object):
def serializer(self):
# type: () -> Any
try:
+ if hasattr(self.dumper, 'typ'):
+ return self.dumper.serializer
return self.dumper._serializer
except AttributeError:
return self # cyaml