Skip to content

Commit

Permalink
Merge pull request #649 from ByteInternet/fix-tornado-py3
Browse files Browse the repository at this point in the history
Python3 fixes for Tornado
  • Loading branch information
omab committed Jul 9, 2015
2 parents ee396b0 + 35a48be commit b3572de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion social/apps/tornado_app/routes.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from tornado.web import url

from handlers import AuthHandler, CompleteHandler, DisconnectHandler
from .handlers import AuthHandler, CompleteHandler, DisconnectHandler


SOCIAL_AUTH_ROUTES = [
Expand Down
5 changes: 3 additions & 2 deletions social/strategies/tornado_strategy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import json
import six

from tornado.template import Loader, Template

Expand Down Expand Up @@ -28,8 +29,8 @@ def get_setting(self, name):

def request_data(self, merge=True):
# Multiple valued arguments not supported yet
return dict((key, val[0])
for key, val in self.request.arguments.iteritems())
return dict((key, val[0].decode())
for key, val in six.iteritems(self.request.arguments))

def request_host(self):
return self.request.host
Expand Down

0 comments on commit b3572de

Please sign in to comment.