diff options
author | Anthon van der Neut <anthon@mnt.org> | 2018-11-01 15:41:15 +0100 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2018-11-01 15:41:15 +0100 |
commit | e63c1e186f88812d705de8f572373d2abe5f195b (patch) | |
tree | d2ca9500cab4cadd16d8b75852a23f12a359966e /anchor.py | |
parent | 82a72a27c6ba866878fdebe7a70bd4a86f54e81d (diff) | |
download | ruamel.yaml-e63c1e186f88812d705de8f572373d2abe5f195b.tar.gz |
fix issue #255 and #256 empty collection defaulting to flow-style0.15.76
an empty collection now defaults to best style. I.e. if elements are inserted
their style is not forced to flow-style
*When this change indeed resolves your problem, please **Close** this issue*.
*(You can do so using the WorkFlow pull-down (close to the top right of this page))*
Diffstat (limited to 'anchor.py')
-rw-r--r-- | anchor.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1,8 +1,8 @@ - anchor_attrib = '_yaml_anchor' + class Anchor(object): __slots__ = 'value', 'always_dump' attrib = anchor_attrib @@ -11,4 +11,3 @@ class Anchor(object): # type: () -> None self.value = None self.always_dump = False - |