From 46b6207f05f0f91c88a69156f88afa7e92c560cf Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Tue, 31 Jul 2012 22:23:47 -0400 Subject: [PATCH] Fix python3 errors. --- Makefile | 2 +- requests/models.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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() -- 2.7.4