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)
commit98b62acdb20ee089cbe31b6f0058d96449ab937c
tree4296c5626ab4f177ae5f777795ed7b4652cc2eea
parent797427b0e5f261336a07236cd4fc04dc759ea37c
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