]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/tasks/ragweed: get rid of cString for py3
authorKyr Shatskyy <kyrylo.shatskyy@suse.com>
Sat, 15 Feb 2020 10:20:11 +0000 (11:20 +0100)
committerKyr Shatskyy <kyrylo.shatskyy@suse.com>
Fri, 6 Mar 2020 09:19:55 +0000 (10:19 +0100)
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
qa/tasks/ragweed.py

index ba59f7959fbcef1f2d529509364ad1718143aba9..32d108ceb640f397705e56ba02f4ee0a11d04059 100644 (file)
@@ -1,7 +1,7 @@
 """
 Run a set of s3 tests on rgw.
 """
-from cStringIO import StringIO
+from io import BytesIO
 from configobj import ConfigObj
 import base64
 import contextlib
@@ -200,7 +200,7 @@ def configure(ctx, config, run_stages):
         if properties is not None and 'slow_backend' in properties:
             ragweed_conf['fixtures']['slow backend'] = properties['slow_backend']
 
-        conf_fp = StringIO()
+        conf_fp = BytesIO()
         ragweed_conf.write(conf_fp)
         teuthology.write_file(
             remote=remote,