We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bddf712 commit 5ab5e74Copy full SHA for 5ab5e74
src/ansys/dpf/core/operators/build.py
@@ -216,7 +216,7 @@ def build_operators():
216
217
# Write to operator file
218
operator_file = os.path.join(category_path, scripting_name + ".py")
219
- with open(operator_file, "w") as f:
+ with open(operator_file, "wb") as f:
220
try:
221
operator_str = build_operator(
222
specification,
@@ -226,7 +226,7 @@ def build_operators():
226
category,
227
)
228
exec(operator_str, globals())
229
- f.write(operator_str)
+ f.write(operator_str.encode())
230
succeeded += 1
231
except SyntaxError as e:
232
error_message = (
0 commit comments