File: anchor.py

package info (click to toggle)
ruamel.yaml 0.15.89-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,508 kB
  • sloc: python: 10,725; ansic: 7,392; makefile: 11
file content (13 lines) | stat: -rw-r--r-- 234 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13


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