Skip to content

Commit 97c78dc

Browse files
committed
[OMCSession] use function keyword arguments if possible
1 parent e1f4bb5 commit 97c78dc

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

OMPython/OMCSession.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def poll(self):
5050
return None if self.process.is_running() else True
5151

5252
def kill(self):
53-
return os.kill(self.pid, signal.SIGKILL)
53+
return os.kill(pid=self.pid, signal=signal.SIGKILL)
5454

5555
def wait(self, timeout):
5656
try:
@@ -854,10 +854,12 @@ def run_model_executable(self, cmd_run_data: OMCSessionRunData) -> int:
854854
return returncode
855855

856856
def execute(self, command: str):
857-
warnings.warn(message="This function is depreciated and will be removed in future versions; "
858-
"please use sendExpression() instead",
859-
category=DeprecationWarning,
860-
stacklevel=2)
857+
warnings.warn(
858+
message="This function is depreciated and will be removed in future versions; "
859+
"please use sendExpression() instead",
860+
category=DeprecationWarning,
861+
stacklevel=2,
862+
)
861863

862864
return self.sendExpression(command, parsed=False)
863865

0 commit comments

Comments
 (0)