Method
loadFile
(
self, file: str, encoding: str = "utf-8", errors: str = "ignore"
)
Source from the content-addressed store, hash-verified
| 203 | self.loadData(data) |
| 204 | |
| 205 | def loadFile( |
| 206 | self, file: str, encoding: str = "utf-8", errors: str = "ignore" |
| 207 | ) -> bool: |
| 208 | with open(file, "rb") as f: |
| 209 | return self.loadJson(f.read().decode(encoding=encoding, errors=errors)) |
| 210 | |
| 211 | def loadJson(self, string: str) -> bool: |
| 212 | return self.loadData(json.loads(string)) |
Callers
nothing calls this directly
Tested by
no test coverage detected