]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
teuthology/run_tasks.py: drop six.ensure_str()
authorKefu Chai <kchai@redhat.com>
Wed, 17 Jun 2020 10:19:56 +0000 (18:19 +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/run_tasks.py

index 027132bb1f21b6c00e59b02e8a5d4e7938df3959..2cc647c89999fc4649ad51648168fd9b998e3a91 100644 (file)
@@ -1,7 +1,6 @@
 import jinja2
 import logging
 import os
-import six
 import sys
 import time
 import types
@@ -207,8 +206,8 @@ def build_email_body(ctx, stack, sleep_time_sec):
     email_template_path = os.path.dirname(__file__) + \
             '/templates/email-sleep-before-teardown.jinja2'
 
-    with open(email_template_path, 'r') as f:
-        template_text = six.ensure_str(f.read())
+    with open(email_template_path) as f:
+        template_text = f.read()
 
     email_template = jinja2.Template(template_text)
     archive_path = ctx.config.get('archive_path')