Skip to content

Commit 1246d47

Browse files
committed
Drop Python2 workarounds
1 parent 50b2898 commit 1246d47

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

OMPython/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ def _set_omc_command(self, omc_path_and_args_list):
516516
if sys.platform == 'win32':
517517
self._omc_command = omc_path_and_args_list
518518
else:
519-
self._omc_command = ' '.join([shlex.quote(a) if (sys.version_info > (3, 0)) else a for a in omc_path_and_args_list])
519+
self._omc_command = ' '.join([shlex.quote(a) for a in omc_path_and_args_list])
520520

521521
return self._omc_command
522522

@@ -551,7 +551,7 @@ def _connect_to_omc(self, timeout):
551551
while True:
552552
if self._dockerCid:
553553
try:
554-
self._port = subprocess.check_output(["docker", "exec", self._dockerCid, "cat", self._port_file], stderr=subprocess.DEVNULL if (sys.version_info > (3, 0)) else subprocess.STDOUT).decode().strip()
554+
self._port = subprocess.check_output(["docker", "exec", self._dockerCid, "cat", self._port_file], stderr=subprocess.DEVNULL).decode().strip()
555555
break
556556
except Exception:
557557
pass

0 commit comments

Comments
 (0)