Skip to content

Commit

Permalink
Fix python3 errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmavirus24 committed Aug 2, 2012
1 parent c71f48b commit 46b6207
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions requests/models.py
Expand Up @@ -340,9 +340,9 @@ def _encode_files(self, files):
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()
Expand Down

0 comments on commit 46b6207

Please sign in to comment.