]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa/tasks/s3tests: py3 compat
authorKyr Shatskyy <kyrylo.shatskyy@suse.com>
Sat, 15 Feb 2020 10:12:40 +0000 (11:12 +0100)
committerKefu Chai <kchai@redhat.com>
Sun, 14 Jun 2020 08:34:53 +0000 (16:34 +0800)
commit4ce1f18b4716a9399836817e4d1ae3f7ff3bfc80
tree8f95af77da3cd685db80c87a963dd5520495d6d2
parentad0051159900caf717196ec3ead5f613c829d6c3
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>
(cherry picked from commit 478083e7319b0fc0eba5fc4f7fa9193ece784b15)
qa/tasks/s3tests.py