Skip to content

Commit 715270d

Browse files
committed
[OMCProcessDocker] remove unused variable in for loop; replace by _
1 parent ec78ec3 commit 715270d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

OMPython/OMCSession.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ def _docker_process_get(self, docker_cid: str) -> Optional[DummyPopen]:
947947
raise NotImplementedError("Docker not supported on win32!")
948948

949949
docker_process = None
950-
for idx in range(0, 40):
950+
for _ in range(0, 40):
951951
dockerTop = subprocess.check_output(["docker", "top", docker_cid]).decode().strip()
952952
docker_process = None
953953
for line in dockerTop.split("\n"):
@@ -1175,7 +1175,7 @@ def _docker_omc_start(self) -> Tuple[subprocess.Popen, DummyPopen, str]:
11751175
raise OMCSessionException(f"Invalid content for docker container ID file path: {docker_cid_file}")
11761176

11771177
docker_cid = None
1178-
for idx in range(0, 40):
1178+
for _ in range(0, 40):
11791179
try:
11801180
with open(file=docker_cid_file, mode="r", encoding="utf-8") as fh:
11811181
docker_cid = fh.read().strip()

0 commit comments

Comments
 (0)