8000 Fix broken Python 3.3, 3.4, and 3.5 by ilanbiala · Pull Request #360 · twilio/twilio-python · GitHub
[go: up one dir, main page]

Skip to content

Fix broken Python 3.3, 3.4, and 3.5 #360

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

Merged
merged 1 commit into from
Jun 27, 2017
Merged

Fix broken Python 3.3, 3.4, and 3.5 #360

merged 1 commit into from
Jun 27, 2017

Conversation

ilanbiala
Copy link
Contributor
@ilanbiala ilanbiala commented Jun 19, 2017

json.loads only accepts str types in Python >3 and <3.6, so this PR converts all returned response.content objects to str from bytes.

Fixes #358
Fixes #359

@@ -2,7 +2,7 @@

from requests import Request, Session

from twilio.compat import urlparse
from twilio.compat import urlparse, string_compat
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove if we don't use this anywhere.

…ent (bytes), and add tests with Unicode strings
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
0