oslo.vmware/oslo_vmware
Haifeng.Yan 9c998c3b0c Fix TypeError:six.StringIO(resp.content) 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.

This patch fix it by using six.BytesIO instead of six.StringIO, which is
actually the same as six.StringIO in py2.

Change-Id: If1b910104f36b583946f62b5a4a3c4fd7e16f6c2
Closes-Bug: 1610125
2016-08-17 02:48:22 +08:00
..
common Python 3 deprecated the logger.warn method in favor of warning 2015-12-29 12:35:37 +08:00
locale Imported Translations from Zanata 2016-06-11 08:04:39 +00:00
objects Move bandit into pep8 2016-02-25 09:02:07 -08:00
tests Fix TypeError:six.StringIO(resp.content) must be str or None, not bytes. 2016-08-17 02:48:22 +08:00
wsdl Add SPBM WSDL for vSphere 6.0 2015-04-23 02:03:14 -07:00
__init__.py Move files out of the namespace package 2015-01-12 13:22:13 -05:00
_i18n.py Update translation setup 2016-01-30 00:28:16 +09:00
api.py Use oslo_utils reflection to get function name 2016-01-14 20:35:52 +08:00
constants.py Move files out of the namespace package 2015-01-12 13:22:13 -05:00
exceptions.py Python 3 deprecated the logger.warn method in favor of warning 2015-12-29 12:35:37 +08:00
image_transfer.py Method to download file to VMware server 2016-08-02 22:25:37 +05:30
image_util.py Support download of virtual disk in ova container 2016-05-19 22:45:40 -07:00
pbm.py Python 3 deprecated the logger.warn method in favor of warning 2015-12-29 12:35:37 +08:00
rw_handles.py Refactor VmdkWriteHandle and VmdkReadHandle 2016-05-31 10:44:33 +08:00
service.py Fix TypeError:six.StringIO(resp.content) must be str or None, not bytes. 2016-08-17 02:48:22 +08:00
version.py Add reno for release notes management 2016-05-24 15:06:34 +03:00
vim.py Allow http connection pool size to be configured 2015-07-31 06:54:12 -05:00
vim_util.py isoformat instead of deprecated timeutils.strtime 2015-12-17 16:58:24 +08:00