summaryrefslogtreecommitdiff
path: root/representer.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2017-04-26 15:30:45 +0200
committerAnthon van der Neut <anthon@mnt.org>2017-04-26 15:30:45 +0200
commit9f29a72b98712f191237cb2ee3dc1f3db730d361 (patch)
tree82926022fba697a14a1474b501470735d13b3650 /representer.py
parente52c0b996a9d51a5aec5eaef0baee4000c59969f (diff)
downloadruamel.yaml-9f29a72b98712f191237cb2ee3dc1f3db730d361.tar.gz
fix problem in cdav/ooo.py safe-dumping with cyaml0.14.10
Diffstat (limited to 'representer.py')
-rw-r--r--representer.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/representer.py b/representer.py
index 8d20617..a9e229c 100644
--- a/representer.py
+++ b/representer.py
@@ -59,7 +59,10 @@ class BaseRepresenter(object):
@property
def serializer(self):
# type: () -> Any
- return self.dumper._serializer
+ try:
+ return self.dumper._serializer
+ except AttributeError:
+ return self # cyaml
def represent(self, data):
# type: (Any) -> None