* lib/mudpy/misc.py(Element.getlist,Element.getdict): Unlike INI, YAML
directly encodes other datatypes in addition to strings. When using get
functions for lists and dicts, if they're already provided in their
desired form then don't recast them as doing so would instead create
nested datatypes instead.
default = []
value = self.get(facet)
if value:
- return mudpy.data.makelist(value)
+ if type(value) is list:
+ return value
+ else:
+ return mudpy.data.makelist(value)
else:
return default
default = {}
value = self.get(facet)
if value:
- return mudpy.data.makedict(value)
+ if type(value) is dict:
+ return value
+ else:
+ return mudpy.data.makedict(value)
else:
return default