We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Getting the following warning when running prsync in python 3.8 and greater
bash-5.0# prsync --errdir=/tmp/err --outdir=/tmp/out -x "-avx --numeric-ids" -H "root@172.17.0.4" /root/test/ /root /usr/local/lib/python3.9/site-packages/psshlib/manager.py:349: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used dest = self.files[filename] = open( [1] 14:51:54 [SUCCESS] root@172.17.0.4 bash-5.0#
bash-5.0# prsync --errdir=/tmp/err --outdir=/tmp/out -x "-avx --numeric-ids" -H "root@172.17.0.4" /root/test/ /root /usr/local/lib/python3.9/site-packages/psshlib/manager.py:349: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used dest = self.files[filename] = open( [1] 14:51:54 [SUCCESS] root@172.17.0.4
bash-5.0#
Some references on the problem
https://bugs.python.org/issue32236 benoitc/gunicorn#2146 (potential fix)
Would it break any existing implementations if I were to set buffering=0 on the file write function call?
https://github.com/lilydjwg/pssh/blob/master/psshlib/manager.py#L344
The text was updated successfully, but these errors were encountered:
I have tested this, setting buffering to 0 silences the warning
Sorry, something went wrong.
5e544a7
No branches or pull requests
Getting the following warning when running prsync in python 3.8 and greater
bash-5.0# prsync --errdir=/tmp/err --outdir=/tmp/out -x "-avx --numeric-ids" -H "root@172.17.0.4" /root/test/ /root /usr/local/lib/python3.9/site-packages/psshlib/manager.py:349: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used dest = self.files[filename] = open( [1] 14:51:54 [SUCCESS] root@172.17.0.4
bash-5.0#
Some references on the problem
https://bugs.python.org/issue32236
benoitc/gunicorn#2146 (potential fix)
Would it break any existing implementations if I were to set buffering=0 on the file write function call?
https://github.com/lilydjwg/pssh/blob/master/psshlib/manager.py#L344
The text was updated successfully, but these errors were encountered: