Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix python3 handling of openid backend on sqlalchemy storage #524

Merged
merged 1 commit into from Feb 23, 2015
Merged

fix python3 handling of openid backend on sqlalchemy storage #524

merged 1 commit into from Feb 23, 2015

Conversation

ghost
Copy link

@ghost ghost commented Feb 17, 2015

base64.encodestring() returns "bytes" type, this fails type check with sqlalchemy (pypostgresql driver for sqlalchemy here) with python3.

Calling .decode() converts the result to "str" type, and database insert/update works.
This patch also works with python2 (converting from "str" to "unicode").

omab added a commit that referenced this pull request Feb 23, 2015
fix python3 handling of openid backend on sqlalchemy storage
@omab omab merged commit 40279f5 into omab:master Feb 23, 2015
@omab
Copy link
Owner

omab commented Feb 23, 2015

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant