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: v15.2.4~42^2~28 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b2991dd392d807dc56e6ea7de917816fe9777578;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 696fc731b6d0..142575554a8a 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 @@ -201,7 +201,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,