diff options
author | Anthon van der Neut <anthon@mnt.org> | 2017-04-26 15:30:45 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2017-04-26 15:30:45 +0200 |
commit | 9f29a72b98712f191237cb2ee3dc1f3db730d361 (patch) | |
tree | 82926022fba697a14a1474b501470735d13b3650 /representer.py | |
parent | e52c0b996a9d51a5aec5eaef0baee4000c59969f (diff) | |
download | ruamel.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.py | 5 |
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 |