From 5f29daff88815e3ba87a2ff5933086e505e41581 Mon Sep 17 00:00:00 2001 From: adityacp Date: Thu, 5 Jan 2017 15:51:35 +0530 Subject: Fix cli for python 3 --- yaksh/scripts/cli.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'yaksh/scripts/cli.py') diff --git a/yaksh/scripts/cli.py b/yaksh/scripts/cli.py index 283cb12..1489af7 100644 --- a/yaksh/scripts/cli.py +++ b/yaksh/scripts/cli.py @@ -11,7 +11,7 @@ from django.conf import settings from django.core import management from django.template import Template, Context -from project_detail import NAME, PATH +from .project_detail import NAME, PATH CUR_DIR = os.getcwd() SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__)) @@ -136,10 +136,8 @@ def _render_demo_files(template_path, output_path, context=None): with open(template_path, 'r') as template_file: content = template_file.read() if context: - content = content.decode('utf-8') template = Template(content) content = template.render(context) - content = content.encode('utf-8') with open(output_path, 'w') as new_file: new_file.write(content) -- cgit