~blake-rouse/maas/fix-1509417

Viewing all changes in revision 4419.

[r=allenap][bug=][author=mpontillo] Add a generic labeled constraint map parser.

This allows parsing of strings of the following format, and converts them into Python dictionaries:

<label1>:<key1>=<value1>[,<key2>=<value2>,..][;<label2>:...]

A user-specified exception (which defaults to ValueError) is thrown if parsing fails.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: