Kaydet (Commit) 3eb89eaa authored tarafından Russell Keith-Magee's avatar Russell Keith-Magee

Fixed typo in docstring of YAML serializer.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4734 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 2a8da0a5
......@@ -15,7 +15,7 @@ import yaml
class Serializer(PythonSerializer):
"""
Convert a queryset to JSON.
Convert a queryset to YAML.
"""
def end_serialization(self):
yaml.dump(self.objects, self.stream, **self.options)
......@@ -25,7 +25,7 @@ class Serializer(PythonSerializer):
def Deserializer(stream_or_string, **options):
"""
Deserialize a stream or string of JSON data.
Deserialize a stream or string of YAML data.
"""
if isinstance(stream_or_string, basestring):
stream = StringIO(stream_or_string)
......
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