Ticket #15197: check_stream.patch
File check_stream.patch, 564 bytes (added by , 12 years ago) |
---|
-
django/core/serializers/pyyaml.py
diff --git a/django/core/serializers/pyyaml.py b/django/core/serializers/pyyaml.py index 7a508da..bdaae6c 100644
a b class Serializer(PythonSerializer): 42 42 yaml.dump(self.objects, self.stream, Dumper=DjangoSafeDumper, **self.options) 43 43 44 44 def getvalue(self): 45 return self.stream.getvalue() 45 if callable(getattr(self.stream, 'getvalue', None)): 46 return self.stream.getvalue() 46 47 47 48 def Deserializer(stream_or_string, **options): 48 49 """