[Python-modules-commits] [python-social-auth] 02/32: Python3 fixes for Tornado
Wolfgang Borgert
debacle at moszumanska.debian.org
Sat Dec 24 15:13:44 UTC 2016
This is an automated email from the git hooks/post-receive script.
debacle pushed a commit to tag v0.2.12
in repository python-social-auth.
commit b567c0ee30ad860fe436a5419326aee4df5d3771
Author: Maarten van Schaik <maarten at byte.nl>
Date: Wed Jun 17 14:54:52 2015 +0200
Python3 fixes for Tornado
---
social/apps/tornado_app/routes.py | 2 +-
social/strategies/tornado_strategy.py | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/social/apps/tornado_app/routes.py b/social/apps/tornado_app/routes.py
index a9ff013..30b7839 100644
--- a/social/apps/tornado_app/routes.py
+++ b/social/apps/tornado_app/routes.py
@@ -1,6 +1,6 @@
from tornado.web import url
-from handlers import AuthHandler, CompleteHandler, DisconnectHandler
+from .handlers import AuthHandler, CompleteHandler, DisconnectHandler
SOCIAL_AUTH_ROUTES = [
diff --git a/social/strategies/tornado_strategy.py b/social/strategies/tornado_strategy.py
index 7e3f112..f10a885 100644
--- a/social/strategies/tornado_strategy.py
+++ b/social/strategies/tornado_strategy.py
@@ -1,4 +1,5 @@
import json
+import six
from tornado.template import Loader, Template
@@ -29,7 +30,7 @@ class TornadoStrategy(BaseStrategy):
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())
+ for key, val in six.iteritems(self.request.arguments))
def request_host(self):
return self.request.host
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-social-auth.git
More information about the Python-modules-commits
mailing list