Esempio n. 1
0
 def __init__(self, stream):
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     NodeConstructor.__init__(self)
     Resolver.__init__(self)
Esempio n. 2
0
 def __init__(self, stream, register=None):
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     Constructor.__init__(self, register)
     Resolver.__init__(self)
 def __init__(self, stream, filename=None):
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     HolderConstructor.__init__(self, filename)
     Resolver.__init__(self)
 def __init__(self, stream, filename=None):
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     HolderConstructor.__init__(self, filename)
     Resolver.__init__(self)
Esempio n. 5
0
 def __init__(self, stream):
     Reader.__init__(self, stream)
     PyonYamlScanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     Constructor.__init__(self)
     Resolver.__init__(self)
Esempio n. 6
0
 def __init__(self, stream, file_name=None):
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     AnsibleConstructor.__init__(self, file_name=file_name)
     Resolver.__init__(self)
Esempio n. 7
0
 def __init__(self, stream: TextIO) -> None:
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     BaseConstructor.__init__(self)
     BaseResolver.__init__(self)
Esempio n. 8
0
 def __init__(self, stream):
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     Constructor.__init__(self)
     Resolver.__init__(self)
Esempio n. 9
0
 def __init__(self, stream, file_name=None):
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     AnsibleConstructor.__init__(self, file_name=file_name)
     Resolver.__init__(self)
Esempio n. 10
0
 def __init__(self, stream: TextIO, *, kind: ast.FlowKind) -> None:
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     BaseConstructor.__init__(self)
     BaseResolver.__init__(self)
     self._kind = kind
Esempio n. 11
0
 def __init__(self, stream, filename):
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     SafeConstructor.__init__(self)
     Resolver.__init__(self)
     NodeConstructor.__init__(self, filename)
Esempio n. 12
0
    def __init__(self, stream, name="<Unknown>", parent=None, secret=False):
        self.name = name
        self.parent = parent

        Reader.__init__(self, stream)
        Scanner.__init__(self)
        Parser.__init__(self)
        Composer.__init__(self, secret=secret)
Esempio n. 13
0
 def __init__(self, stream, cfg_folder: str = None):
     self.cfg_folder = cfg_folder
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     Constructor.__init__(self)
     Resolver.__init__(self)
Esempio n. 14
0
 def __init__(self, stream, runtime_args=None):
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     JinaConstructor.__init__(self)
     JinaResolver.__init__(self)
     self.runtime_args = runtime_args
Esempio n. 15
0
 def __init__(self, stream, file_name=None, vault_password=None):
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     AnsibleConstructor.__init__(self,
                                 file_name=file_name,
                                 b_vault_password=vault_password)
     Resolver.__init__(self)
Esempio n. 16
0
 def __init__(self, stream, file_name=None, line=None, column=None, vault_password=None):
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     YAMLConstructor.__init__(self, file_name=file_name,
                              line=line, column=column,
                              vault_password=vault_password)
     Resolver.__init__(self)
Esempio n. 17
0
 def __init__(self, stream):
     self.meta = Meta(stream, 1, 1)
     self._root = os.path.split(stream.name)[0]
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     YipCons.__init__(self)
     Resolver.__init__(self)
Esempio n. 18
0
 def __init__(self, stream, file_name=None, vault_secrets=None):
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)  # pylint: disable=non-parent-init-called
     Composer.__init__(self)
     AnsibleConstructor.__init__(self,
                                 file_name=file_name,
                                 vault_secrets=vault_secrets)
     Resolver.__init__(self)
Esempio n. 19
0
 def __init__(self, stream, file_name=None, vault_secrets=None):
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     AssibleConstructor.__init__(self,
                                 file_name=file_name,
                                 vault_secrets=vault_secrets)
     Resolver.__init__(self)
Esempio n. 20
0
    def __init__(self, stream, name="<Unknown>", special_term='yay', secret=False):
        self.name = name
        self.special_term = special_term
        self.openers = Openers()

        Reader.__init__(self, stream)
        Scanner.__init__(self)
        Parser.__init__(self)
        Composer.__init__(self, secret=secret)
Esempio n. 21
0
    def __init__(self, stream):
        self.m_dictFileID2NodeData = {}
        self.dictNode2FileID = {}

        Reader.__init__(self, stream)
        Scanner.__init__(self)
        _PrefabParserInner.__init__(self)
        PrefabComposer.__init__(self)
        Constructor.__init__(self)
        Resolver.__init__(self)
Esempio n. 22
0
    def __init__(self, stream):
        """
        Return an instance of this customised YAML Loader class.

        """
        Reader.__init__(self, stream)
        Scanner.__init__(self)
        Parser.__init__(self)
        Composer.__init__(self)
        NodeConstructor.__init__(self)
        Resolver.__init__(self)
Esempio n. 23
0
    def __init__(self, stream):
        """
        Return an instance of this customised YAML Loader class.

        """
        Reader.__init__(self, stream)
        Scanner.__init__(self)
        Parser.__init__(self)
        Composer.__init__(self)
        NodeConstructor.__init__(self)
        Resolver.__init__(self)
Esempio n. 24
0
 def __init__(self, stream, filename):
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     if cyaml:
         Parser.__init__(self, stream)
     else:
         Parser.__init__(self)
     Composer.__init__(self)
     SafeConstructor.__init__(self)
     Representer.__init__(self)
     Resolver.__init__(self)
     NodeConstructor.__init__(self, filename)
Esempio n. 25
0
    def __init__(self, filename):
        self.filename = filename
        with open(self.filename, encoding='utf-8') as fp:
            stream = self.preprocess(fp.read())
        Reader.__init__(self, stream)
        self.name = self.filename

        Scanner.__init__(self)
        Parser.__init__(self)
        Composer.__init__(self)
        Constructor.__init__(self)
        Resolver.__init__(self)
Esempio n. 26
0
    def __init__(self, stream):
        Reader.__init__(self, stream)
        Scanner12.__init__(self)
        Parser.__init__(self)
        Composer.__init__(self)

# PKM2014 - uses SafeConstructor instead of Constructor. This should make no
# difference, because "Is it YAML?" only gets as far as the composition stage,
# but - well: it reduces the risk of something bad happening.

#        Constructor.__init__(self)
        SafeConstructor.__init__(self)
        Resolver.__init__(self)
Esempio n. 27
0
    def __init__(self, stream):
        """Initialise Loader."""

        try:
            self._root = os.path.split(stream.name)[0]
        except AttributeError:
            self._root = os.path.curdir

        Reader.__init__(self, stream)
        Scanner.__init__(self)
        Parser.__init__(self)
        RememberComposer.__init__(self)
        SafeConstructor.__init__(self)
        Resolver.__init__(self)
Esempio n. 28
0
    def __init__(self, stream):
        """Initialise Loader."""

        # pylint: disable=non-parent-init-called

        try:
            self._root = os.path.split(stream.name)[0]
        except AttributeError:
            self._root = os.path.curdir

        Reader.__init__(self, stream)
        Scanner.__init__(self)
        Parser.__init__(self)
        RememberComposer.__init__(self)
        SafeConstructor.__init__(self)
        Resolver.__init__(self)
        SourceMappingConstructor.__init__(self)
Esempio n. 29
0
    def __init__(self, stream, cfg_folder: str = None):
        self.cfg_folder = cfg_folder
        Reader.__init__(self, stream)
        Scanner.__init__(self)
        Parser.__init__(self)
        Composer.__init__(self)
        SafeConstructor.__init__(self)
        Resolver.__init__(self)

        self.add_constructor("!format",
                             self.__class__.format_string_constructor)
        self.add_constructor("!file", self.__class__.file_contructor)
        self.add_constructor("!include",
                             self.__class__.include_file_constructor)
        self.add_constructor("!include_merge",
                             self.__class__.include_merge_constructor)
        self.add_constructor(
            "!include_dir_file_mapped",
            self.__class__.include_dir_file_mapped_constructor)
        self.add_constructor("!env_var", self.__class__.env_var_constructor)
        self.add_constructor("!path", self.__class__.path_constructor)
        self.add_constructor("!listdir", self.__class__.listdir_constructor)
Esempio n. 30
0
 def _load(self, data):
     stream = Reader(data)
     while stream.peek() != u'\0':
         stream.forward()
Esempio n. 31
0
 def _load(self, data):
     stream = Reader(data)
     while stream.peek() != u'\0':
         stream.forward()