Skip to content

Commit 2bfec6f

Browse files
committed
Correct type errors
1 parent 6dc8d96 commit 2bfec6f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cwltool/sandboxjs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def terminate():
166166

167167
PROCESS_FINISHED_STR = "r1cepzbhUTxtykz5XTC4\n"
168168

169-
def process_finished():
169+
def process_finished(): # type: () -> bool
170170
return stdout_buf.getvalue().decode().endswith(PROCESS_FINISHED_STR) and \
171171
stderr_buf.getvalue().decode().endswith(PROCESS_FINISHED_STR)
172172

@@ -222,7 +222,7 @@ def get_error(error_queue):
222222

223223
finished = False
224224

225-
while not finished and tm.isAlive():
225+
while not finished and tm.is_alive():
226226
try:
227227
if nodejs.stdin in wselect:
228228
if not input_queue.empty():
@@ -245,7 +245,7 @@ def get_error(error_queue):
245245
break
246246

247247
else:
248-
while not (process_finished() or not tm.isAlive()):
248+
while not process_finished() and tm.is_alive():
249249
rready, wready, _ = select.select(rselect, wselect, [])
250250
try:
251251
if nodejs.stdin in wready:

0 commit comments

Comments
 (0)