Dropped bufsize=1 due to Python 3.8 warning

This commit is contained in:
2Shirt 2019-11-30 21:29:24 -07:00
parent 79371a3fa5
commit 4cadb913e8
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -793,14 +793,12 @@ def start_mprime_thread(working_dir, log_path):
"""Start mprime and save filtered output to log, returns Popen object."""
proc_mprime = subprocess.Popen(
['mprime', '-t'],
bufsize=1,
cwd=working_dir,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
)
proc_grep = subprocess.Popen(
'grep --ignore-case --invert-match --line-buffered stress.txt'.split(),
bufsize=1,
stdin=proc_mprime.stdout,
stdout=subprocess.PIPE,
)