(self)
| 190 | return |
| 191 | |
| 192 | def fillbuf(self): |
| 193 | if self.charpos < len(self.buf): return |
| 194 | # fetch next chunk. |
| 195 | self.bufpos = self.fp.tell() |
| 196 | self.buf = self.fp.read(self.BUFSIZ) |
| 197 | if not self.buf: |
| 198 | raise PSEOF('Unexpected EOF') |
| 199 | self.charpos = 0 |
| 200 | return |
| 201 | |
| 202 | def nextline(self): |
| 203 | """Fetches a next line that ends either with \\r or \\n. |