Merge pull request #1982 from dex4er/feature_j2_filter_safe_yaml

Use yaml.safe_dump rather than yaml.dump. No more "!!python/unicode".
This commit is contained in:
Daniel Hokka Zakrisson 2013-02-07 13:24:08 -08:00
commit 19f3cf45f4

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,
}