From: Kefu Chai Date: Wed, 17 Jun 2020 10:19:56 +0000 (+0800) Subject: teuthology/run_tasks.py: drop six.ensure_str() X-Git-Tag: 1.1.0~86^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9f99b9298265be583c350c71de47109bac4bf6f1;p=teuthology.git teuthology/run_tasks.py: drop six.ensure_str() Signed-off-by: Kefu Chai --- diff --git a/teuthology/run_tasks.py b/teuthology/run_tasks.py index 027132bb1..2cc647c89 100644 --- a/teuthology/run_tasks.py +++ b/teuthology/run_tasks.py @@ -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')