Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Fixes #109 - Python3 str/bytes bug in ReadMedia() #126

Closed
wants to merge 1 commit into from

Conversation

snobu
Copy link
Member

@snobu snobu commented Jul 24, 2018

Ref Andrey's issue from circa 2017 —
#109

@@ -134,9 +134,6 @@ def _Request(connection_policy, requests_session, resource_url, request_options,
return (response.raw, headers)

data = response.content
if not six.PY2:
# python 3 compatible: convert data from byte to unicode string
data = data.decode('utf-8')
Copy link
Member Author

Choose a reason for hiding this comment

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

.decode() is unnecessary here —

image

@christopheranderson
Copy link

Closing old inactive PRs. See #153 for more details or to discuss reopening it.

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

Successfully merging this pull request may close these issues.

2 participants