Comment 1 for bug 1610125

Revision history for this message
Haifeng.Yan (yanheven) wrote : Re: TypeError: initial_value must be str or None, not bytes

in py2, using requests, type(response.conten)=unicode, six.StringIO(resp.content) is fine.
but in py3, type(response.conten)=byte, six.StringIO(resp.content) will raise TypeError: initial_value must be str or None, not bytes.

suggest:
in py3, use six.BytesIO(resp.content) instead.