Skip to content

Instantly share code, notes, and snippets.

@tadone
Created April 3, 2018 07:44
Show Gist options
  • Save tadone/7d86db644599aab14fcc46235cd9abc1 to your computer and use it in GitHub Desktop.
Save tadone/7d86db644599aab14fcc46235cd9abc1 to your computer and use it in GitHub Desktop.
[YAML] Work with YAML files #python
import ruamel.yaml as yaml
with open("example.yaml") as stream:
try:
print(yaml.load(stream))
except yaml.YAMLError as exc:
print(exc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment