MCPcopy Create free account
hub / github.com/etingof/apacheconfig / loads

Method loads

apacheconfig/wloader.py:51–61  ·  view source on GitHub ↗

Loads config text into a raw modifiable AST. Args: text (Text): (Text) containing the configuration to load. Returns: :class:`apacheconfig.ListNode` AST containing parsed config.

(self, text)

Source from the content-addressed store, hash-verified

49 return self.loads(f.read())
50
51 def loads(self, text):
52 """Loads config text into a raw modifiable AST.
53
54 Args:
55 text (Text): (Text) containing the configuration to load.
56
57 Returns:
58 :class:`apacheconfig.ListNode` AST containing parsed config.
59 """
60 ast = self._parser.parse(text)
61 return ListNode(ast, self._parser)
62
63
64def _restore_original(word):

Callers 1

loadMethod · 0.95

Calls 2

ListNodeClass · 0.85
parseMethod · 0.45

Tested by

no test coverage detected