From e357b1c52be8f645400788bd6925497bc4c5ddf0 Mon Sep 17 00:00:00 2001 From: Kale Kundert Date: Wed, 4 Apr 2018 14:37:27 -0700 Subject: [PATCH] Allow Unicode in the XML scripts. --- pull_into_place/big_jobs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pull_into_place/big_jobs.py b/pull_into_place/big_jobs.py index cb5e007..7b3774d 100644 --- a/pull_into_place/big_jobs.py +++ b/pull_into_place/big_jobs.py @@ -170,7 +170,7 @@ def finalize_protocol(workspace, params): context = dict(w=workspace, **params) with open(workspace.final_protocol_path, 'w') as file: - file.write(template.render(context)) + file.write(template.render(context).encode('utf8')) def print_debug_header(): from datetime import datetime