From 437a33e054128cf0c40e3ae1346a3996870c9cc8 Mon Sep 17 00:00:00 2001 From: Flavio Fernandes Date: Sun, 15 May 2022 10:24:36 -0400 Subject: [PATCH] proc.py: Fix RuntimeWarning ref: https://github.com/benoitc/gunicorn/pull/2146 /usr/lib/python3.9/subprocess.py:941: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used self.stdout = io.open(c2pread, 'rb', bufsize) --- mqtt2cmd/proc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mqtt2cmd/proc.py b/mqtt2cmd/proc.py index 9cf5050..4d5d30e 100755 --- a/mqtt2cmd/proc.py +++ b/mqtt2cmd/proc.py @@ -50,7 +50,7 @@ def _run_impl(self, cmd, shell): handle = subprocess.Popen(cmd, shell=shell, - bufsize=1, + # bufsize=1, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, # needed to detach from calling terminal (other wacky things