Skip to content

Commit 801685f

Browse files
committed
[ModelicaSystemCmd.arg_set] TODO: use shlex.quote() for string data
1 parent 4875e5b commit 801685f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OMPython/ModelicaSystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def override2str(okey: str, oval: Any) -> str:
137137
Convert a value for 'override' to a string taking into account differences between Modelica and Python.
138138
"""
139139
if isinstance(oval, str):
140-
oval_str = f"\"{oval.strip()}\""
140+
oval_str = f"\"{oval.strip()}\"" # TODO: use shlex.quote()?
141141
elif isinstance(oval, bool):
142142
oval_str = 'true' if oval else 'false'
143143
elif isinstance(oval, numbers.Number):

0 commit comments

Comments
 (0)