[Python-modules-commits] [python-social-auth] 127/322: fix python3 handling of openid backend on sqlalchemy storage (use str instead of bytes)

Wolfgang Borgert debacle at moszumanska.debian.org
Sat Dec 24 15:12:58 UTC 2016


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to tag v0.2.10
in repository python-social-auth.

commit 97d9c5d2a242b23511ec63a2139ddd53fffa6449
Author: Sergey Kozub <sergey.kozub at p9ft.com>
Date:   Wed Feb 18 00:45:19 2015 +0300

    fix python3 handling of openid backend on sqlalchemy storage (use str instead of bytes)
---
 social/storage/sqlalchemy_orm.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/social/storage/sqlalchemy_orm.py b/social/storage/sqlalchemy_orm.py
index 0947792..e7182ce 100644
--- a/social/storage/sqlalchemy_orm.py
+++ b/social/storage/sqlalchemy_orm.py
@@ -181,7 +181,7 @@ class SQLAlchemyAssociationMixin(SQLAlchemyMixin, AssociationMixin):
         except IndexError:
             assoc = cls(server_url=server_url,
                         handle=association.handle)
-        assoc.secret = base64.encodestring(association.secret)
+        assoc.secret = base64.encodestring(association.secret).decode()
         assoc.issued = association.issued
         assoc.lifetime = association.lifetime
         assoc.assoc_type = association.assoc_type

-- 
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