Ticket #8607: yaml-serialization-to-file.diff

File yaml-serialization-to-file.diff, 531 bytes (added by antony_hatchkins <antony.hatchkins@…>, 8 years ago)

svn diff vs django r8671 which fixes the issue

  • django/core/serializers/pyyaml.py

     
    3636        yaml.safe_dump(self.objects, self.stream, **self.options)
    3737
    3838    def getvalue(self):
    39         return self.stream.getvalue()
     39        if callable(getattr(self.stream, 'getvalue', None)):
     40            return self.stream.getvalue()
    4041
    4142def Deserializer(stream_or_string, **options):
    4243    """
Back to Top