-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
gunicorn 19.9.0 on Python3.8 raises RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode... #2091
Comments
I think we could pass Would you like to make a PR for this? |
In Python 3.8, this code emits a RuntimeWarning about line buffering not being supported in binary mode. In issue benoitc#2091, it is suggested that the fix is to send a 0 instead of a 1 in the `open` call. So this implements that fix.
the question also is why suddenly python decided to buffer there also. does anyone knows when the change have been done? |
Python is not buffering here and never was. The argument of The change to emit this warning is new in 3.8: https://bugs.python.org/issue32236 #2146 is ready with the fix and approved. |
still i wonder what changed. anyway I pushed the patch, it will be part of
the 20.0 release today
On Wed 30 Oct 2019 at 09:14, Randall Leeds ***@***.***> wrote:
Python is not buffering here and never was. The argument of buffering=1
was silently ignored.
The change to emit this warning is new in 3.8:
https://bugs.python.org/issue32236
#2146 <#2146> is ready with the
fix and approved.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2091?email_source=notifications&email_token=AAADRIQLXIUIVDUCA6POYKTQRE667A5CNFSM4IL5TQSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECTIP3Q#issuecomment-547784686>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAADRIWNBHJOVI7RSRR3NJTQRE667ANCNFSM4IL5TQSA>
.
--
Sent from my Mobile
|
Python 3.8 started reporting warnings when binary files are opened with bufsize > 0, see https://bugs.python.org/issue32236 for the change and benoitc/gunicorn#2091 for a similar issue. The error message was: py.warnings: WARNING: /usr/lib/python3.8/subprocess.py:844: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
Python 3.8 started reporting warnings when binary files are opened with bufsize > 0, see https://bugs.python.org/issue32236 for the change and benoitc/gunicorn#2091 for a similar issue. The error message was: py.warnings: WARNING: /usr/lib/python3.8/subprocess.py:844: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
…6333) Python 3.8 started reporting warnings when binary files are opened with bufsize > 0, see https://bugs.python.org/issue32236 for the change and benoitc/gunicorn#2091 for a similar issue. The error message was: py.warnings: WARNING: /usr/lib/python3.8/subprocess.py:844: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
with reference to benoitc/gunicorn#2091
Fixes the warnings we see due to benoitc/gunicorn#2091
See https://bugs.python.org/issue32236
Issue is caused by:
The text was updated successfully, but these errors were encountered: