GoogleCloudPlatform / gcs-oauth2-boto-plugin

Auth plugin allowing use the use of OAuth 2.0 credentials for Google Cloud Storage in the Boto library.
Apache License 2.0
21 stars 38 forks source link

Ensure unicode content string from http.request #46

Closed catleeball closed 5 years ago

catleeball commented 5 years ago

For Python 2 / 3 compatibility, we need to ensure that the content string returned from httplib2.Http().request is Unicode. json.loads in Python 3 only handles Unicode strings, necessitating this change.