]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
teuthology/suite: drop six.ensure_str()
authorKefu Chai <kchai@redhat.com>
Wed, 17 Jun 2020 10:03:22 +0000 (18:03 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 17 Jun 2020 14:19:20 +0000 (22:19 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
teuthology/suite/util.py

index 9083138f83ba18087230922f193c55aca86cadbb..9efb460afd869dcf11338d0a4bb0606e0d3d1317 100644 (file)
@@ -5,7 +5,6 @@ import requests
 import smtplib
 import socket
 import subprocess
-import six
 import sys
 
 from email.mime.text import MIMEText
@@ -462,7 +461,7 @@ def find_git_parent(project, sha1):
         resp = requests.get(url)
         if not resp.ok:
             log.error('git refresh failed for %s: %s',
-                      project, six.ensure_str(resp.content))
+                      project, resp.content.decode())
 
     def get_sha1s(project, committish, count):
         url = '/'.join((base_url, '%s.git' % project,