From e63c1e186f88812d705de8f572373d2abe5f195b Mon Sep 17 00:00:00 2001 From: Anthon van der Neut Date: Thu, 1 Nov 2018 15:41:15 +0100 Subject: fix issue #255 and #256 empty collection defaulting to flow-style 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))* --- anchor.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'anchor.py') diff --git a/anchor.py b/anchor.py index e1b5432..4d77ad3 100644 --- a/anchor.py +++ b/anchor.py @@ -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 - -- cgit v1.2.1