MCPcopy Index your code
hub / github.com/PyQt5/PyQt / loadFile

Method loadFile

QTreeView/Lib/qjsonmodel.py:205–209  ·  view source on GitHub ↗
(
        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

Calls 1

loadJsonMethod · 0.95

Tested by

no test coverage detected