(path: Path, default)
| 30 | |
| 31 | |
| 32 | def _load_json(path: Path, default): |
| 33 | if not path.exists(): |
| 34 | return deepcopy(default) |
| 35 | with open(path, "r", encoding="utf-8") as f: |
| 36 | return json.load(f) |
| 37 | |
| 38 | |
| 39 | class SourceInventory: |
no outgoing calls
no test coverage detected