Use safe_dump. Fixes #123.

This commit is contained in:
Tom Christie 2012-01-11 10:13:49 +00:00
parent 6bdacdfcf0
commit 365703e1bb

View File

@ -169,7 +169,7 @@ if yaml:
if obj is None:
return ''
return yaml.dump(obj)
return yaml.safe_dump(obj)
else:
YAMLRenderer = None