Fix python3 errors.

This commit is contained in:
Ian Cordasco
2012-07-31 22:23:47 -04:00
parent c71f48b5f1
commit 46b6207f05
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
+2 -2
View 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()