From: Kefu Chai Date: Sun, 28 Jun 2020 11:59:50 +0000 (+0800) Subject: qa/tasks/cephfs: drop six dependency X-Git-Tag: wip-pdonnell-testing-20200918.022351~781^2~12 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a045778d5b5bce829426aacffc8eff510ea3db0d;p=ceph-ci.git qa/tasks/cephfs: drop six dependency Signed-off-by: Kefu Chai --- diff --git a/qa/tasks/cephfs/test_forward_scrub.py b/qa/tasks/cephfs/test_forward_scrub.py index 7ed8564d228..9ca3c4de790 100644 --- a/qa/tasks/cephfs/test_forward_scrub.py +++ b/qa/tasks/cephfs/test_forward_scrub.py @@ -7,10 +7,8 @@ This is *not* the real testing for forward scrub, which will need to test how the functionality responds to damaged metadata. """ -import json - import logging -import six +import json from collections import namedtuple from io import BytesIO @@ -37,7 +35,7 @@ class TestForwardScrub(CephFSTestCase): output = self.fs.rados(["getxattr", obj, attr], pool=pool, stdout_data=BytesIO()) strlen = struct.unpack('i', output[0:4])[0] - return six.ensure_str(output[4:(4 + strlen)], encoding='ascii') + return output[4:(4 + strlen)].decode(encoding='ascii') def _get_paths_to_ino(self): inos = {}