(data, file_path)
| 106 | |
| 107 | |
| 108 | def write_to_json(data, file_path): |
| 109 | temp_file_path = file_path + ".tmp" |
| 110 | with open(temp_file_path, 'wt', encoding='utf-8') as temp_file: |
| 111 | json.dump(data, temp_file, indent=4) |
| 112 | os.replace(temp_file_path, file_path) |
| 113 | return |
| 114 | |
| 115 | |
| 116 | def read_from_json(file_path): |
nothing calls this directly
no outgoing calls
no test coverage detected