(path)
| 25 | |
| 26 | |
| 27 | def json_read(path): |
| 28 | def pairs(items): |
| 29 | result = {} |
| 30 | for key, value in items: |
| 31 | require(key not in result, "duplicate metadata key") |
| 32 | result[key] = value |
| 33 | return result |
| 34 | return json.loads(read(path, 4 * 1024 * 1024).decode("utf-8"), object_pairs_hook=pairs) |
| 35 | |
| 36 | |
| 37 | def native_summary(data, failed=False): |
no test coverage detected