Internal: read lines until EOF or outerboundary.
(self)
| 709 | todo = todo - len(data) |
| 710 | |
| 711 | def read_lines(self): |
| 712 | """Internal: read lines until EOF or outerboundary.""" |
| 713 | if self._binary_file: |
| 714 | self.file = self.__file = BytesIO() # store data as bytes for files |
| 715 | else: |
| 716 | self.file = self.__file = StringIO() # as strings for other fields |
| 717 | if self.outerboundary: |
| 718 | self.read_lines_to_outerboundary() |
| 719 | else: |
| 720 | self.read_lines_to_eof() |
| 721 | |
| 722 | def __write(self, line): |
| 723 | """line is always bytes, not string""" |
no test coverage detected