]> git.apps.os.sepia.ceph.com Git - ceph.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)
committerKefu Chai <kchai@redhat.com>
Tue, 2 Jun 2020 02:32:23 +0000 (10:32 +0800)
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
(cherry picked from commit f0c5f56ef8ba869ccacf799a9ed6df9dedf0caaa)

qa/tasks/ragweed.py

index fab0853ce986453522aee573994f8736cc6a41d0..5806ed0c94e03b9a8ea7a44b031a3f95034906e0 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
@@ -213,7 +213,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,