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

Method read_single

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

Internal: read an atomic part.

(self)

Source from the content-addressed store, hash-verified

681 self.skip_lines()
682
683 def read_single(self):
684 """Internal: read an atomic part."""
685 if self.length >= 0:
686 self.read_binary()
687 self.skip_lines()
688 else:
689 self.read_lines()
690 self.file.seek(0)
691
692 bufsize = 8*1024 # I/O buffering size for copy to file
693

Callers 1

__init__Method · 0.95

Calls 4

read_binaryMethod · 0.95
skip_linesMethod · 0.95
read_linesMethod · 0.95
seekMethod · 0.45

Tested by

no test coverage detected