Skip to content

Commit 61287b1

Browse files
committed
Default return in read_pipe
1 parent f060040 commit 61287b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

easybuild/tools/run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,15 +588,15 @@ def to_cmd_str(cmd):
588588
raise EasyBuildError(error_msg)
589589
try:
590590
t = timeout - (time.time() - start) if timeout else None
591-
stdout += read_pipe(proc.stdout, timeout=t) or b''
591+
stdout += read_pipe(proc.stdout, timeout=t)
592592
except TimeoutError:
593593
pass
594594

595595
# note: we assume that there won't be any questions in stderr output
596596
if split_stderr:
597597
try:
598598
t = timeout - (time.time() - start) if timeout else None
599-
stderr += read_pipe(proc.stderr, timeout=t) or b''
599+
stderr += read_pipe(proc.stderr, timeout=t)
600600
except TimeoutError:
601601
pass
602602

0 commit comments

Comments
 (0)