Commit 19f3cf45 by Daniel Hokka Zakrisson

Merge pull request #1982 from dex4er/feature_j2_filter_safe_yaml

Use yaml.safe_dump rather than yaml.dump. No more "!!python/unicode".
parents 663052dd 8cf26844
...@@ -25,7 +25,7 @@ class FilterModule(object): ...@@ -25,7 +25,7 @@ class FilterModule(object):
return { return {
'to_json': json.dumps, 'to_json': json.dumps,
'from_json': json.loads, 'from_json': json.loads,
'to_yaml': yaml.dump, 'to_yaml': yaml.safe_dump,
'from_yaml': yaml.load, 'from_yaml': yaml.load,
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment