opc_ua/client.py
changeset 3820 46f3ca3f0157
parent 3750 f62625418bff
--- a/opc_ua/client.py	Wed May 31 23:16:29 2023 +0200
+++ b/opc_ua/client.py	Sun Jun 18 16:28:42 2023 +0200
@@ -142,7 +142,7 @@
         c_code = '#include "beremiz.h"\n'
         c_code += self.modeldata.GenerateC(c_path, locstr, self.GetConfig())
 
-        with open(c_path, 'wb') as c_file:
+        with open(c_path, 'w') as c_file:
             c_file.write(c_code)
 
         LDFLAGS = ['"' + os.path.join(Open62541LibraryPath, "libopen62541.a") + '"', '-lcrypto']