summaryrefslogtreecommitdiff
path: root/morphlib/yamlparse.py
Commit message (Collapse)AuthorAgeFilesLines
* Use the modern way of the GPL copyright header: URL instead real addressJavier Jardón2015-03-161-3/+2
| | | | Change-Id: I992dc0c1d40f563ade56a833162d409b02be90a0
* Dump multi-line strings in yaml documents in '|' formbaserock/richardmaw/bugfix/yaml-multi-line-dumpRichard Maw2014-07-301-1/+1
| | | | | | | | This prevents the description fields of morphologies being mangled. This does not preserve the original formatting, so much as happen to dump it in the same way we wrote it, but given we chose that form because we think it looks the nicest, that's not a problem.
* Legacy morph code: Also dump in specified orderRichard Maw2014-02-171-98/+4
| | | | | This rips out any remaining order-preserving code and instead uses the yaml dumper from morphloader.
* yaml: use Safe Loaders and DumpersRichard Maw2013-02-111-4/+4
| | | | | This is equivalent to using yaml.safe_load(), but lets us customise how yaml is parsed.
* Merge branch 'liw/soft-pyyaml-dep'Sam Thursfield2013-01-291-85/+99
|\ | | | | | | Merge commit fixes up a copyright year and removes EOL whitespace
| * Make yaml be an optional dependencyLars Wirzenius2013-01-291-85/+100
|/ | | | | This can go away when we have made a release with yaml in it, and its staging filler.
* Parse as YAML if not valid JSONRichard Maw2013-01-221-0/+119
Tests are currently broken, one because invalid JSON can be valid YAML, and coverage is incomplete.