Skip to content

Instantly share code, notes, and snippets.

View vaab's full-sized avatar

Valentin Lab vaab

View GitHub Profile
@vaab
vaab / yaml_ordered_dict.py
Created January 11, 2016 09:14 — forked from enaeseth/yaml_ordered_dict.py
Load YAML mappings as ordered dictionaries
import yaml
import yaml.constructor
try:
# included in standard lib from Python 2.7
from collections import OrderedDict
except ImportError:
# try importing the backported drop-in replacement
# it's available on PyPI
from ordereddict import OrderedDict