Don't unnecessarily recast lists and dicts
authorJeremy Stanley <fungi@yuggoth.org>
Mon, 2 Jun 2014 06:31:26 +0000 (06:31 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Mon, 2 Jun 2014 06:31:26 +0000 (06:31 +0000)
commit5c8dc88ec1007fe10891aecb8261cf5bd28b74e2
tree10f074f1b3a4de7ee795c48a23031e606d2d4bf7
parent86f645e4f4ca7fb0c1ed04dca03470324ef22f4e
Don't unnecessarily recast lists and dicts

* 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.
lib/mudpy/misc.py