Fix python3 errors.
authorIan Cordasco <graffatcolmingov@gmail.com>
Wed, 1 Aug 2012 02:23:47 +0000 (22:23 -0400)
committerIan Cordasco <graffatcolmingov@gmail.com>
Thu, 2 Aug 2012 21:31:30 +0000 (17:31 -0400)
Makefile
requests/models.py

index 8b2ae83..1473d12 100644 (file)
--- 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
 
index c62b2d3..8e2e335 100644 (file)
@@ -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()