Use yaml.safe_dump rather than yaml.dump. No more "!!python/unicode".

This commit is contained in:
Piotr Roszatycki 2013-02-04 13:40:07 +01:00
parent fed82c2188
commit 8cf268441e

View file

@ -25,7 +25,7 @@ class FilterModule(object):
return {
'to_json': json.dumps,
'from_json': json.loads,
'to_yaml': yaml.dump,
'to_yaml': yaml.safe_dump,
'from_yaml': yaml.load,
}