D | ninja.py | 33 def open(path, mode, encoding=None): argument 277 def __init__(self, lines_iterable, path='<stdin>', encoding='utf-8'): argument 278 self.encoding = encoding 547 def parse(self, path, encoding, depfile=None): argument 558 self._parse_internal(path, encoding, EvalEnv()) 560 self.parse_dep_file(depfile, encoding) 564 def _parse_internal(self, path, encoding, env): argument 566 with open(path, 'r', encoding=encoding) as fp: 567 self._push_context(Lexer(fp, path, encoding), env) 839 self._parse_internal(path, self._lexer.encoding, env) [all …]
|