]> git.ipfire.org Git - thirdparty/patchwork.git/commit
views: Make 'patch_to_mbox' return a string
authorStephen Finucane <stephen@that.guru>
Mon, 9 Jan 2017 12:06:14 +0000 (12:06 +0000)
committerStephen Finucane <stephen@that.guru>
Tue, 4 Apr 2017 14:11:34 +0000 (15:11 +0100)
commit051f0d8c96b9bcf6fb079ec9c4f02f2ed2f66e6c
tree50317fbe1bf23ce3989e6bd03352f420ba144898
parentb5f65f848b5e91dab3b12d99c4d37d766756f3e9
views: Make 'patch_to_mbox' return a string

The 'patch_to_mbox' function returns an object which is coverted to a
string in all places where this call occurs. The string conversion
differs between Python 2 and 3 and while it has been updated in one
place, it was missed in two others. Resolve these issues and ensure they
don't happen again by returning strings from 'patch_to_mbox' instead.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Reviewed-by: Daniel Axtens <dja@axtens.net>
patchwork/views/__init__.py
patchwork/views/bundle.py
patchwork/views/patch.py
patchwork/views/xmlrpc.py