From: Ian Cordasco Date: Wed, 1 Aug 2012 02:23:47 +0000 (-0400) Subject: Fix python3 errors. X-Git-Tag: v0.13.7~3^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=46b6207f05f0f91c88a69156f88afa7e92c560cf;p=services%2Fpython-requests.git Fix python3 errors. --- diff --git a/Makefile b/Makefile index 8b2ae83..1473d12 100644 --- a/Makefile +++ b/Makefile @@ -37,7 +37,7 @@ cipyflakes: ${PYFLAKES_IF_AVAILABLE} ${PYFLAKES_WHITELIST} citests: - nosetests ${CI_TESTS} -v --with-xunit --xunit-file=junit-report.xml + nosetests ${CI_TESTS} --with-xunit --xunit-file=junit-report.xml ci: citests cipyflakes diff --git a/requests/models.py b/requests/models.py index c62b2d3..8e2e335 100644 --- a/requests/models.py +++ b/requests/models.py @@ -340,9 +340,9 @@ class Request(object): return None try: - fields = self.data.items() + fields = list(self.data.items()) except AttributeError: - fields = dict(self.data).items() + fields = list(dict(self.data).items()) if isinstance(files, dict): files = files.items()