Signed-off-by: Kefu Chai <kchai@redhat.com>
import jinja2
import logging
import os
-import six
import sys
import time
import types
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')