Ticket #13178: django-yaml-block-mode.patch

File django-yaml-block-mode.patch, 636 bytes (added by Patryk Zawadzki, 15 years ago)

Proposed patch

  • django/core/serializers/pyyaml.py

     
    4141        self.options.pop('stream', None)
    4242        self.options.pop('fields', None)
    4343        self.options.pop('use_natural_keys', None)
    44         yaml.dump(self.objects, self.stream, Dumper=DjangoSafeDumper, **self.options)
     44        yaml.dump(self.objects, self.stream, Dumper=DjangoSafeDumper, default_flow_style=False, **self.options)
    4545
    4646    def getvalue(self):
    4747        return self.stream.getvalue()
Back to Top