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)
| 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 | |
| 64 | def _restore_original(word): |