Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
conda
fsl-ci-rules
Commits
d0f62cca
Commit
d0f62cca
authored
Jun 04, 2021
by
Paul McCarthy
🚵
Browse files
MNT: Back to pyyaml, as I've just discovered the recently-added sort_keys option
parent
395fae48
Changes
2
Hide whitespace changes
Inline
Side-by-side
fsl_ci/__init__.py
View file @
d0f62cca
...
...
@@ -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
:
...
...
requirements.txt
View file @
d0f62cca
pyyaml
pyyaml
>=5.1
jinja2
networkx
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment