From ebd11added0691ecfd8a8914c1531b6fbb4b70e2 Mon Sep 17 00:00:00 2001 From: Sina Majidian Date: Tue, 12 Dec 2023 20:37:04 +0100 Subject: [PATCH] Update bufsize solving this warnings subprocess.py:961: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used --- read2tree/wrappers/abstract_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/read2tree/wrappers/abstract_cli.py b/read2tree/wrappers/abstract_cli.py index 2071c830..e7b02f02 100644 --- a/read2tree/wrappers/abstract_cli.py +++ b/read2tree/wrappers/abstract_cli.py @@ -216,7 +216,7 @@ def __call__(self, cmd=None, wait=False, **flags): # spawn self.process = Popen(shlex.split(self.cmd), - shell=False, stdout=PIPE, stderr=PIPE, bufsize=1, close_fds=POSIX) + shell=False, stdout=PIPE, stderr=PIPE, bufsize=64, close_fds=POSIX) if self.verbose: print('Launched {} with PID {}'.format(self.exe, self.process.pid))