Lines Matching refs:line
78 def is_valid_line(line: str):
79 return line.startswith(KCONF_PREFIX)
82 def handle_config_feature(items: dict, arr: list, line: str):
86 features = line.split("=", 1)[1].strip("\"")
93 def handle_config_component(items: dict, arr: list, line: str):
97 items[VALUE] = line.split("=", 1)[1]
100 def handle_config_property(items: dict, arr: list, line: str):
103 items[VALUE] = line.split("=", 1)[1].strip("\"")
106 def read_line_item(line: str):
107 line = line.strip()
116 arr = line.split("$$")
118 handle_config_feature(items, arr, line)
120 handle_config_property(items, arr, line)
122 handle_config_component(items, arr, line)
129 for line in f.readlines():
130 if not is_valid_line(line):
132 items = read_line_item(line)