py_ext/PythonFileCTNMixin.py
changeset 3806 b57a38ce3f34
parent 3752 9f6f46dbe3ae
--- 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()