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

check encoding before trying to convert, avoids py3 errors #186

Merged
merged 1 commit into from
Apr 3, 2018
Merged

Conversation

pld
Copy link
Contributor

@pld pld commented Apr 2, 2018

Python3 will throw an error on this line if question_name has already been encoded as a byte string. Do not encode it if it is already a byte string.

@ukanga ukanga merged commit 423160f into master Apr 3, 2018
@ukanga ukanga deleted the py3 branch April 3, 2018 08:09
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.

2 participants