We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d509595 commit a3a8b33Copy full SHA for a3a8b33
easybuild/tools/run.py
@@ -508,9 +508,9 @@ def to_cmd_str(cmd):
508
509
if stream_output or qa_patterns:
510
# enable non-blocking access to stdout, stderr, stdin
511
- channels = [channel for channel in (proc.stdout, proc.stdin, proc.stderr) if channel is not None]
512
- for channel in channels:
513
- os.set_blocking(channel.fileno(), False)
+ for channel in (proc.stdout, proc.stdin, proc.stderr):
+ if channel is not None:
+ os.set_blocking(channel.fileno(), False)
514
515
if stdin:
516
proc.stdin.write(stdin)
0 commit comments