Commit d0f62cca authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

MNT: Back to pyyaml, as I've just discovered the recently-added sort_keys option

parent 395fae48
......@@ -18,7 +18,7 @@ import tempfile
import contextlib as ctxlib
import subprocess as sp
import ruamel.yaml as yaml
import yaml
__version__ = '0.6.14'
......@@ -129,16 +129,12 @@ def lockdir(dirname):
def loadyaml(s):
"""Loads a YAML string, returning a dict-like. """
return yaml.YAML().load(s)
return yaml.load(s)
def dumpyaml(o):
"""Dumps the given YAML to a string. """
s = io.StringIO()
y = yaml.YAML()
y.default_flow_style = False
y.dump(o, s)
return s.getvalue()
return yaml.dump(o, sort_keys=False)
class CaptureStdout:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment