Lines Matching refs:encoding
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)
842 def parse_dep_file(self, path, encoding): argument
843 depfile = DepFileParser().parse(path, encoding)
879 def parse(self, path, encoding): argument
881 return self._parse(fp, encoding)
897 def _extract_path(s, encoding): argument
906 def _extract_path(s, encoding): argument
912 return intern(s[0:pos].decode(encoding))
922 def _parse(self, fp, encoding): argument
975 path = self._extract_path(buf, encoding)
1030 return Parser(args.cwd).parse(args.input_file, args.encoding,