]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Use six.StringIO instead of StringIO.StringIO
authorHe Yongli <yongli.he@intel.com>
Mon, 17 Feb 2014 04:42:33 +0000 (12:42 +0800)
committerHe Yongli <yongli.he@intel.com>
Tue, 25 Feb 2014 09:07:29 +0000 (17:07 +0800)
commitaa7dd439c580378b1ca2d647c7c2b0c32289b2f1
treee8c56c2ce1b0a6b81f7ec1ad7b2911fc398ffbe6
parentee1b6428c7370fe1c488ec74ac87f7388c628677
Use six.StringIO instead of StringIO.StringIO

to keep Python 3.x compatibility, use six.StringIO/BytesIO to
replace StringIO.StringIO

StringIO works for unicode
BytesIO works for bytes

Change-Id: I5e40809b2347d4dbe031ba92dac4848b044d3af6
Closes-Bug: #1280100
cinder/backup/drivers/swift.py
cinder/tests/api/middleware/test_sizelimit.py
cinder/tests/api/v1/test_limits.py
cinder/tests/api/v2/test_limits.py
cinder/tests/scheduler/test_scheduler_options.py
cinder/tests/test_api.py
cinder/tests/test_netapp.py
cinder/tests/test_netapp_ssc.py
cinder/tests/test_policy.py
cinder/tests/test_utils.py
cinder/tests/test_xenapi_sm.py