Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.9.2: subprocess.py - RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used #2

Open
amal-khailtash opened this issue Mar 5, 2021 · 0 comments

Comments

@amal-khailtash
Copy link

On Python 3.9.2, the bufsize=1 on the following line:

101: p = Popen(command, stdout=PIPE, stderr=STDOUT, shell=True, bufsize=1)

causes this warning:

$ jenkenv run Jenkinsfile
.../python/3.9.2/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)

Removing bufsize=1 fixes this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant