Write string s to the stream if a whole new block is ready to be written.
(self, s)
| 442 | self.__write(s) |
| 443 | |
| 444 | def __write(self, s): |
| 445 | """Write string s to the stream if a whole new block |
| 446 | is ready to be written. |
| 447 | """ |
| 448 | self.buf += s |
| 449 | while len(self.buf) > self.bufsize: |
| 450 | self.fileobj.write(self.buf[:self.bufsize]) |
| 451 | self.buf = self.buf[self.bufsize:] |
| 452 | |
| 453 | def close(self): |
| 454 | """Close the _Stream object. No operation should be |
no test coverage detected