Skip to content

fix python3 handling of openid backend on sqlalchemy storage#524

Merged
omab merged 1 commit intomasterfrom
unknown repository
Feb 23, 2015
Merged

fix python3 handling of openid backend on sqlalchemy storage#524
omab merged 1 commit intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@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
Copy Markdown
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