This is from RHEL distgit tests/PyYAML, directory Sanity/Smoke. The original commit hash: fd668cd6d20ca9c46d9bfa5ccf34f3a925317b25 Only necessary files were kept. Co-Authored-By: Lukas Zachar <lzachar@redhat.com> Co-Authored-By: Miro Hrončok <miro@hroncok.cz>
10 lines
145 B
Python
10 lines
145 B
Python
#!/usr/bin/env python
|
|
import yaml
|
|
document = """
|
|
a: 1
|
|
b:
|
|
c: 3
|
|
d: 4
|
|
"""
|
|
print(yaml.dump(yaml.load(document, Loader=yaml.SafeLoader)))
|