summaryrefslogtreecommitdiff
path: root/anchor.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2018-11-01 15:41:15 +0100
committerAnthon van der Neut <anthon@mnt.org>2018-11-01 15:41:15 +0100
commite63c1e186f88812d705de8f572373d2abe5f195b (patch)
treed2ca9500cab4cadd16d8b75852a23f12a359966e /anchor.py
parent82a72a27c6ba866878fdebe7a70bd4a86f54e81d (diff)
downloadruamel.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.py3
1 files changed, 1 insertions, 2 deletions
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
-