]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
qa/tasks/s3tests: py3 compat
authorKyr Shatskyy <kyrylo.shatskyy@suse.com>
Sat, 15 Feb 2020 10:12:40 +0000 (11:12 +0100)
committerKyr Shatskyy <kyrylo.shatskyy@suse.com>
Fri, 6 Mar 2020 09:19:55 +0000 (10:19 +0100)
commit478083e7319b0fc0eba5fc4f7fa9193ece784b15
tree8770c73de77f3409cebf772cb2c7d5a801aaa50d
parent683421ea24bbed4ba72ea96a9055134bed554696
qa/tasks/s3tests: py3 compat

- use string.ascii_uppercase instead string.uppercase
- use six.ensure_str for bytes when required
- use six.ensure_binary if needed
- get rid of dict.itervalues in favor of dict.values
- get rid of cStringIO.StringIO in favor io.BytesIO

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
qa/tasks/s3tests.py