Skip to content

Commit

Permalink
ise items() since iteritems() not in py3
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTravisB committed Oct 5, 2013
1 parent e7ed9d3 commit 010728a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tornado/httpserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def _on_request_body(self, data):
self._request.headers.get("Content-Type", ""), data,
self._request.body_arguments, self._request.files)

for k, v in self._request.body_arguments.iteritems():
for k, v in self._request.body_arguments.items():
self._request.arguments.setdefault(k, []).extend(v)
self.request_callback(self._request)

Expand Down
2 changes: 1 addition & 1 deletion tornado/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def __init__(self, environ):
httputil.parse_body_arguments(self.headers.get("Content-Type", ""),
self.body, self.body_arguments, self.files)

for k, v in self.body_arguments.iteritems():
for k, v in self.body_arguments.items():
self.arguments.setdefault(k, []).extend(v)

self._start_time = time.time()
Expand Down

0 comments on commit 010728a

Please sign in to comment.