I'd do:
```
kwargs['separators'] = kwargs.get('separators', (',', ':'))
```


On Wed, Aug 21, 2013 at 8:06 PM, Tim Graham <notifications@github.com>wrote:

> In django/contrib/messages/storage/session.py:
>
> >          else:
> >              self.request.session.pop(self.session_key, None)
> >          return []
> > +
> > +    def serialize_messages(self, messages):
> > +        encoder = MessageEncoder(separators=(',', ':'))
>
> look ok? https://gist.github.com/timgraham/dc1cc1abe202d3830eab
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/django/django/pull/1488/files#r5903355>
> .
>