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:
commit
19f3cf45f4
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue