From 963197113b86bea0378a00625be39b4345904bd9 Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Thu, 28 May 2020 17:16:46 +1000 Subject: [PATCH] ProcessController.py (run): Use default Popen buffer size to avoid Python 3.8 runtime warnings: "RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used" --- gooey/gui/processor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gooey/gui/processor.py b/gooey/gui/processor.py index e4d11a5..8e4fad5 100644 --- a/gooey/gui/processor.py +++ b/gooey/gui/processor.py @@ -48,12 +48,12 @@ class ProcessController(object): try: self._process = subprocess.Popen( command.encode(sys.getfilesystemencoding()), - bufsize=1, stdout=subprocess.PIPE, stdin=subprocess.PIPE, + stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.STDOUT, shell=self.shell_execution, env=env) except: self._process = subprocess.Popen( command, - bufsize=1, stdout=subprocess.PIPE, stdin=subprocess.PIPE, + stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr = subprocess.STDOUT, shell = self.shell_execution, env=env) t = Thread(target=self._forward_stdout, args=(self._process,))