MCPcopy Create free account
hub / github.com/apache/kafka / get_json_dict_data

Function get_json_dict_data

system_test/utils/system_test_utils.py:169–178  ·  view source on GitHub ↗
(infile)

Source from the content-addressed store, hash-verified

167 return returnValue
168
169def get_json_dict_data(infile):
170 json_file_str = open(infile, "r").read()
171 json_data = json.loads(json_file_str)
172 data_dict = {}
173
174 for key,val in json_data.items():
175 if ( type(val) != list ):
176 data_dict[key] = val
177
178 return data_dict
179
180def get_remote_child_processes(hostname, pid):
181 pidStack = []

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected