author | Edouard Tisserant <edouard.tisserant@gmail.com> |
Wed, 17 May 2023 23:59:45 +0200 | |
changeset 3806 | b57a38ce3f34 |
parent 3805 | 5a66d4be2e49 |
child 3807 | 87f670154294 |
--- a/py_ext/PythonFileCTNMixin.py Wed May 17 23:36:12 2023 +0200 +++ b/py_ext/PythonFileCTNMixin.py Wed May 17 23:59:45 2023 +0200 @@ -243,7 +243,7 @@ # write generated content to python file runtimefile_path = os.path.join(buildpath, "runtime_%s.py" % location_str) - runtimefile = open(runtimefile_path, 'w') + runtimefile = open(runtimefile_path, 'wb') runtimefile.write(PyFileContent.encode('utf-8')) runtimefile.close()