From 8c3644b57b38fddb955a15b151cd283f7c65a9a8 Mon Sep 17 00:00:00 2001 From: Kyr Shatskyy Date: Sat, 15 Feb 2020 11:20:11 +0100 Subject: [PATCH] qa/tasks/ragweed: get rid of cString for py3 Signed-off-by: Kyr Shatskyy (cherry picked from commit f0c5f56ef8ba869ccacf799a9ed6df9dedf0caaa) --- qa/tasks/ragweed.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qa/tasks/ragweed.py b/qa/tasks/ragweed.py index fab0853ce9864..5806ed0c94e03 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, -- 2.39.5