RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
return io.open(fd, *args, **kwargs)
见https://bugs.python.org/issue32236
问题是由以下原因引起的:
gunicorn/workers/workertmp.py", line 33, in __init__
self._tmp = os.fdopen(fd, 'w+b', 1)
我认为我们可以传递0
因为我们从来没有写过这个文件。 我们只在它上面调用os.fchmod
和os.fstat
。
你想为此做一个公关吗?
问题也是为什么突然python决定也在那里缓冲。 有谁知道更改何时完成?
我仍然想知道发生了什么变化。 无论如何我推动了补丁,它将成为
今天发布 20.0
2019 年 10 月 30 日星期三 09:14,Randall Leeds [email protected]写道:
Python 没有在这里缓冲,而且从来没有。 缓冲的参数=1
被默默无视。发出此警告的更改是 3.8 中的新内容:
https://bugs.python.org/issue322362146 https://github.com/benoitc/gunicorn/pull/2146准备好了
修复并批准。
—
您收到此消息是因为您发表了评论。
直接回复本邮件,在GitHub上查看
https://github.com/benoitc/gunicorn/issues/2091?email_source=notifications&email_token=AAADRIQLXIUIVDUCA6POYKTQRE667A5CNFSM4IL5TQSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXWZHJ78T43LNMVXWZHJ8TQ8TIPOR-1
或取消订阅
https://github.com/notifications/unsubscribe-auth/AAADRIWNBHJOVI7RSRR3NJTQRE667ANCNFSM4IL5TQSA
.>
从我的手机发送
最有用的评论
我仍然想知道发生了什么变化。 无论如何我推动了补丁,它将成为
今天发布 20.0
2019 年 10 月 30 日星期三 09:14,Randall Leeds [email protected]写道:
从我的手机发送