MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / read_lines

Method read_lines

tools/python-3.11.9-amd64/Lib/cgi.py:711–720  ·  view source on GitHub ↗

Internal: read lines until EOF or outerboundary.

(self)

Source from the content-addressed store, hash-verified

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"""

Callers 1

read_singleMethod · 0.95

Calls 4

read_lines_to_eofMethod · 0.95
BytesIOClass · 0.90
StringIOClass · 0.90

Tested by

no test coverage detected