|
@@ -35,7 +35,7 @@ def compile_service(port):
|
|
|
return [0]
|
|
|
|
|
|
with open(temp_file, "w") as f:
|
|
|
- f.write(code)
|
|
|
+ f.write(code.decode())
|
|
|
f.flush()
|
|
|
|
|
|
compiled = do_compile(temp_file, COMPILER_PATH + "/grammars/actionlanguage.g", "CS")
|
|
@@ -49,7 +49,7 @@ def compile_service(port):
|
|
|
return [0]
|
|
|
|
|
|
with open(temp_file, "w") as f:
|
|
|
- f.write(code)
|
|
|
+ f.write(code.decode())
|
|
|
f.flush()
|
|
|
|
|
|
compiled = do_compile(temp_file, COMPILER_PATH + "/grammars/modelling.g", "M")
|