diff options
author | Anthon van der Neut <anthon@mnt.org> | 2017-06-04 14:27:02 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2017-06-04 14:27:02 +0200 |
commit | a0ff58af5242fddc39236168b18aafb7c8b324da (patch) | |
tree | b7ba0da53b720dde7be6e3b32ad927456c6f5dcf /representer.py | |
parent | 6ba66a44af41d072f5ceddfcdf2c21611c2a7cd0 (diff) | |
download | ruamel.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.py | 2 |
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 |