(fname: str, python_version: tuple[int, int], quiet: bool = False)
| 15 | |
| 16 | |
| 17 | def dump(fname: str, python_version: tuple[int, int], quiet: bool = False) -> None: |
| 18 | options = Options() |
| 19 | options.python_version = python_version |
| 20 | with open(fname, "rb") as f: |
| 21 | s = f.read() |
| 22 | tree = parse(s, fname, None, errors=Errors(options), options=options, file_exists=True) |
| 23 | if not quiet: |
| 24 | print(tree) |
| 25 | |
| 26 | |
| 27 | def main() -> None: |