]> git.ipfire.org Git - thirdparty/patchwork.git/commit
py3: Ensure map is wrapped in list
authorStephen Finucane <stephen.finucane@intel.com>
Fri, 5 Feb 2016 17:16:58 +0000 (17:16 +0000)
committerStephen Finucane <stephen.finucane@intel.com>
Mon, 8 Feb 2016 17:57:57 +0000 (17:57 +0000)
commit16680f811b8cb6fcd7243aa1c883675b4b63539a
tree26315085bc6e37dc32bcff5d3d48391bc20f7b0c
parentf83cc5829852142f1eba988ee01af49f4869489b
py3: Ensure map is wrapped in list

The map function doesn't return a list in Python 3, which means it
can't be used like one. Many of these issues were previously resolved
but there were some uncovered code paths. Resolve these, adding tests
to ensure it doesn't regress.

In addition, change what's serialized and returned. Instead of
returning a subset of the serialized values, only serialize a subset
of the original values. This means n items are serialized instead of
max.

Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
patchwork/tests/test_xmlrpc.py
patchwork/views/xmlrpc.py