Fixed typo in docstring of YAML serializer.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4734 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee 2007-03-15 07:48:36 +00:00
parent 2a8da0a502
commit 3eb89eaa25
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ import yaml
class Serializer(PythonSerializer): class Serializer(PythonSerializer):
""" """
Convert a queryset to JSON. Convert a queryset to YAML.
""" """
def end_serialization(self): def end_serialization(self):
yaml.dump(self.objects, self.stream, **self.options) yaml.dump(self.objects, self.stream, **self.options)
@ -25,7 +25,7 @@ class Serializer(PythonSerializer):
def Deserializer(stream_or_string, **options): 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): if isinstance(stream_or_string, basestring):
stream = StringIO(stream_or_string) stream = StringIO(stream_or_string)