Home
last modified time | relevance | path

Searched refs:typeArray (Results 1 – 2 of 2) sorted by relevance

/openbmc/sdbusplus/tools/sdbusplus/
H A Dproperty.py170 typeArray = yaml.safe_load("[" + ",[".join(typeName.split("[")) + "]")
171 return self.__preprocess_yaml_type_array(typeArray).pop(0)
183 def __preprocess_yaml_type_array(self, typeArray): argument
186 for i in range(len(typeArray)):
188 if type(typeArray[i]) is list:
193 if i < len(typeArray) - 1 and type(typeArray[i + 1]) is list:
196 typeArray[i],
197 self.__preprocess_yaml_type_array(typeArray[i + 1]),
201 result.append((typeArray[i], []))
/openbmc/phosphor-fan-presence/control/
H A Dgen-fan-zone-defs.py35 typeArray = yaml.safe_load("[" + ",[".join(typeName.split("[")) + "]")
36 typeTuple = preprocess_yaml_type_array(typeArray).pop(0)
40 def preprocess_yaml_type_array(typeArray): argument
48 for i in range(len(typeArray)):
50 if type(typeArray[i]) is list:
55 if i < len(typeArray) - 1 and type(typeArray[i + 1]) is list:
57 (typeArray[i], preprocess_yaml_type_array(typeArray[i + 1]))
60 result.append((typeArray[i], []))