(self)
| 559 | raise |
| 560 | |
| 561 | def _read_and_discard_trailer(self): |
| 562 | # read and discard trailer up to the CRLF terminator |
| 563 | ### note: we shouldn't have any trailers! |
| 564 | while True: |
| 565 | line = self.fp.readline(_MAXLINE + 1) |
| 566 | if len(line) > _MAXLINE: |
| 567 | raise LineTooLong("trailer line") |
| 568 | if not line: |
| 569 | # a vanishingly small number of sites EOF without |
| 570 | # sending the trailer |
| 571 | break |
| 572 | if line in (b'\r\n', b'\n', b''): |
| 573 | break |
| 574 | |
| 575 | def _get_chunk_left(self): |
| 576 | # return self.chunk_left, reading a new chunk if necessary. |
no test coverage detected