From ef5d9ff364c26cb085810023521d2f289789d75f Mon Sep 17 00:00:00 2001 From: Marcin Junczys-Dowmunt Date: Sun, 1 May 2016 16:07:54 +0200 Subject: xample configuration in README --- scripts/pkl2yaml.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 scripts/pkl2yaml.py (limited to 'scripts/pkl2yaml.py') 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 -- cgit v1.2.3