cleaned up code
This commit is contained in:
parent
91ed81d498
commit
6a34f11d66
|
|
@ -68,11 +68,8 @@ def retrieveValue(page, component):
|
|||
dict[k] = v
|
||||
else:
|
||||
for sk, sv in config[page][match.group(1)][match.group(2)].iteritems():
|
||||
if type(sv) is list:
|
||||
sv.append(match.group(2))
|
||||
else:
|
||||
sv = [sv, match.group(2)]
|
||||
sv = strToList(sv)
|
||||
sv.append(match.group(2))
|
||||
dict[sk] = sv
|
||||
except:
|
||||
dict = {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue