Skip to content

Instantly share code, notes, and snippets.

@borg-z
Last active March 4, 2019 13:48
Show Gist options
  • Save borg-z/be8742b4f479957975923efc819956a8 to your computer and use it in GitHub Desktop.
Save borg-z/be8742b4f479957975923efc819956a8 to your computer and use it in GitHub Desktop.
Python

Yaml pretty print

a = yaml.load('''
azaza: [nfs-utils, samba-client, samba-common, cifs-utils, hunspell, hunspell-ru, qpdf, java, ghostscript]''')

print( yaml.dump(a, default_flow_style=False))

azaza:
- nfs-utils
- samba-client
- samba-common
- cifs-utils
- hunspell
- hunspell-ru
- qpdf
- java
- ghostscript
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment