Skip to content

Commit

Permalink
proc.py: Fix RuntimeWarning
Browse files Browse the repository at this point in the history
ref: benoitc/gunicorn#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)
  • Loading branch information
flavio-fernandes committed May 15, 2022
1 parent f099022 commit 437a33e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mqtt2cmd/proc.py
Expand Up @@ -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
Expand Down

0 comments on commit 437a33e

Please sign in to comment.