From: Kyr Shatskyy Date: Sat, 15 Feb 2020 10:20:11 +0000 (+0100) Subject: qa/tasks/ragweed: get rid of cString for py3 X-Git-Tag: v14.2.10~17^2~90 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8c3644b57b38fddb955a15b151cd283f7c65a9a8;p=ceph.git qa/tasks/ragweed: get rid of cString for py3 Signed-off-by: Kyr Shatskyy (cherry picked from commit f0c5f56ef8ba869ccacf799a9ed6df9dedf0caaa) --- diff --git a/qa/tasks/ragweed.py b/qa/tasks/ragweed.py index fab0853ce986..5806ed0c94e0 100644 --- a/qa/tasks/ragweed.py +++ b/qa/tasks/ragweed.py @@ -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,