summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2007-12-04 20:31:34 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2007-12-04 20:31:34 +0000
commit76b73ce72515678faff06b05dd585136fb0f5bf1 (patch)
tree79975950ae16bcb223ffa8c45479ea4ed85805c0 /django
parent35921e570b22d09ef86d2c189c1901d4835752c5 (diff)
Fixed #5268: the YAML serializer now uses yaml.safe_dump() instead the plain yaml.dump(); this makes YAML dumps more portable, and also removes the crufty '!!python/unicode' business. Thanks, poelzi.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6891 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
-rw-r--r--django/core/serializers/pyyaml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/serializers/pyyaml.py b/django/core/serializers/pyyaml.py
index 92159dbbe3..668bcb288a 100644
--- a/django/core/serializers/pyyaml.py
+++ b/django/core/serializers/pyyaml.py
@@ -20,7 +20,7 @@ class Serializer(PythonSerializer):
def end_serialization(self):
self.options.pop('stream', None)
self.options.pop('fields', None)
- yaml.dump(self.objects, self.stream, **self.options)
+ yaml.safe_dump(self.objects, self.stream, **self.options)
def getvalue(self):
return self.stream.getvalue()