Lines Matching refs:filename
386 .format(self.name, self.node.path, self.node.dt.filename,
407 .format(self.name, self.node.path, self.node.dt.filename,
426 .format(self.name, self.node.path, self.node.dt.filename,
446 .format(self.name, self.node.path, self.node.dt.filename,
472 .format(self.name, self.node.path, self.node.dt.filename,
496 .format(self.name, self.node.path, self.node.dt.filename,
523 self.node.dt.filename, self))
544 .format(self.name, self.node.path, self.node.dt.filename,
679 filename: str
742 def __init__(self, filename: Optional[str], include_path: Iterable[str] = (),
770 self.filename = filename
774 if filename is not None:
775 self._parse_file(filename, include_path)
918 if self.filename:
1015 ret.filename = self.filename
1023 def _parse_file(self, filename: str, include_path: Iterable[str]):
1026 with open(filename, encoding="utf-8") as f:
1351 filename = tok.val
1365 with self._open(filename, "rb") as f:
1621 filename = tok_val[tok_val.find('"') + 1:-1]
1622 self._enter_file(filename)
1628 self.filename = tok_val[tok_val.find('"') + 1:-1]
1678 def _enter_file(self, filename): argument
1683 _FileStackElt(self.filename, self._lineno,
1687 filename = self._unescape(filename.encode("utf-8"))
1689 filename = filename.decode("utf-8")
1693 with self._open(filename, encoding="utf-8") as f:
1701 if filename == parent[0]:
1705 [filename]))
1707 self.filename = f.name
1714 self.filename, self._lineno, self._file_contents, self._tok_end_i = (
1977 def _open(self, filename, mode="r", **kwargs): argument
1983 if filename == "-":
1987 dirname = os.path.dirname(self.filename)
1989 return open(os.path.join(dirname, filename), mode, **kwargs)
1997 return open(os.path.join(path, filename), mode, **kwargs)