Ticket #8607: yaml-serialization-to-file.diff
File yaml-serialization-to-file.diff, 531 bytes (added by , 16 years ago) |
---|
-
django/core/serializers/pyyaml.py
36 36 yaml.safe_dump(self.objects, self.stream, **self.options) 37 37 38 38 def getvalue(self): 39 return self.stream.getvalue() 39 if callable(getattr(self.stream, 'getvalue', None)): 40 return self.stream.getvalue() 40 41 41 42 def Deserializer(stream_or_string, **options): 42 43 """