diff options
author | Marcin Junczys-Dowmunt <junczys@amu.edu.pl> | 2016-05-01 17:07:54 +0300 |
---|---|---|
committer | Marcin Junczys-Dowmunt <junczys@amu.edu.pl> | 2016-05-01 17:07:54 +0300 |
commit | ef5d9ff364c26cb085810023521d2f289789d75f (patch) | |
tree | 91e7416372097b02dc87a71e68079e5bc01322c6 /scripts/pkl2yaml.py | |
parent | 1d31867acf0808478cb3811f7af61d0011e58361 (diff) |
xample configuration in README
Diffstat (limited to 'scripts/pkl2yaml.py')
-rw-r--r-- | scripts/pkl2yaml.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/pkl2yaml.py b/scripts/pkl2yaml.py new file mode 100644 index 00000000..0070566e --- /dev/null +++ b/scripts/pkl2yaml.py @@ -0,0 +1,9 @@ +#!/usr/bin/env python +import sys +import cPickle +import yaml +import operator + +d = cPickle.load(open(sys.argv[1], 'r')) +yaml.safe_dump(d, sys.stdout, + default_flow_style=False, allow_unicode=True)
\ No newline at end of file |