read up to 'size' bytes from the file Default is -1, which means to read to end of file.
(self, size = -1)
| 65 | return x |
| 66 | |
| 67 | def read(self, size = -1): |
| 68 | """read up to 'size' bytes from the file |
| 69 | |
| 70 | Default is -1, which means to read to end of file. |
| 71 | """ |
| 72 | x = self._read(size) |
| 73 | if self.at_beginning and x: |
| 74 | self.at_beginning = 0 |
| 75 | self._check_no_buffer() |
| 76 | return x |
| 77 | |
| 78 | def readline(self): |
| 79 | """read a line from the file""" |
no test coverage detected