MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _read_until

Method _read_until

lib/matplotlib/testing/compare.py:88–97  ·  view source on GitHub ↗

Read until the prompt is reached.

(self, terminator)

Source from the content-addressed store, hash-verified

86 self._proc = None
87
88 def _read_until(self, terminator):
89 """Read until the prompt is reached."""
90 buf = bytearray()
91 while True:
92 c = self._proc.stdout.read(1)
93 if not c:
94 raise _ConverterError(os.fsdecode(bytes(buf)))
95 buf.extend(c)
96 if buf.endswith(terminator):
97 return bytes(buf)
98
99
100class _MagickConverter:

Callers 2

__call__Method · 0.80
__call__Method · 0.80

Calls 1

_ConverterErrorClass · 0.85

Tested by

no test coverage detected