mirror of
https://github.com/python/cpython.git
synced 2025-09-26 02:10:18 +00:00
parent
513e9b4f61
commit
2380feeff8
2 changed files with 61 additions and 3 deletions
|
@ -319,8 +319,8 @@ class _fileobject(object):
|
|||
self._wbuf.append(data)
|
||||
self._wbuf_len += len(data)
|
||||
if (self._wbufsize == 0 or
|
||||
self._wbufsize == 1 and '\n' in data or
|
||||
self._wbuf_len >= self._wbufsize):
|
||||
(self._wbufsize == 1 and '\n' in data) or
|
||||
(self._wbufsize > 1 and self._wbuf_len >= self._wbufsize)):
|
||||
self.flush()
|
||||
|
||||
def writelines(self, list):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue