(self, path: str, result: list[str], header: bool)
| 933 | return ["main"] |
| 934 | |
| 935 | def add_file(self, path: str, result: list[str], header: bool) -> None: |
| 936 | if not os.path.exists(path): |
| 937 | result.append("<%s was not generated>" % path.replace("\\", "/")) |
| 938 | return |
| 939 | if header: |
| 940 | result.append(f"# {path[4:]}") |
| 941 | with open(path, encoding="utf8") as file: |
| 942 | result.extend(file.read().splitlines()) |
| 943 | |
| 944 | |
| 945 | self_arg = ArgSig(name="self") |
no test coverage detected