summaryrefslogtreecommitdiff
path: root/anchor.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2018-10-29 14:14:33 +0100
committerAnthon van der Neut <anthon@mnt.org>2018-10-29 14:14:33 +0100
commit82a72a27c6ba866878fdebe7a70bd4a86f54e81d (patch)
tree67899703ab03033622dcf6ead8880beea59a9232 /anchor.py
parentd6a0ec1e5bff3f20b6705bb345bba17b1fcb7f80 (diff)
downloadruamel.yaml-82a72a27c6ba866878fdebe7a70bd4a86f54e81d.tar.gz
moved Anchor to own module
this prevents future circular imports
Diffstat (limited to 'anchor.py')
-rw-r--r--anchor.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/anchor.py b/anchor.py
new file mode 100644
index 0000000..e1b5432
--- /dev/null
+++ b/anchor.py
@@ -0,0 +1,14 @@
+
+
+
+anchor_attrib = '_yaml_anchor'
+
+class Anchor(object):
+ __slots__ = 'value', 'always_dump'
+ attrib = anchor_attrib
+
+ def __init__(self):
+ # type: () -> None
+ self.value = None
+ self.always_dump = False
+