As discussed in code review

This commit is contained in:
Joe Rickerby
2020-05-15 12:19:38 +01:00
parent 71150a1cb5
commit 0411fcc2ae
7 changed files with 28 additions and 22 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ class TemplateProject:
file_path = os.path.join(path, filename)
os.makedirs(os.path.dirname(file_path), exist_ok=True)
with io.open(file_path, 'w', encoding='utf8') as f:
with open(file_path, 'w', encoding='utf8') as f:
if isinstance(content, jinja2.Template):
content = content.render(self.template_context)