MCPcopy Index your code
hub / github.com/python-openxml/python-docx / _read_byte

Method _read_byte

src/docx/image/jpeg.py:217–225  ·  view source on GitHub ↗

Return the next byte read from stream. Raise Exception if stream is at end of file.

(self)

Source from the content-addressed store, hash-verified

215 return offset_of_ff_byte
216
217 def _read_byte(self):
218 """Return the next byte read from stream.
219
220 Raise Exception if stream is at end of file.
221 """
222 byte_ = self._stream.read(1)
223 if not byte_: # pragma: no cover
224 raise Exception("unexpected end of file")
225 return byte_
226
227
228def _MarkerFactory(marker_code, stream, offset):

Callers 2

_next_non_ff_byteMethod · 0.95

Calls 1

readMethod · 0.80

Tested by

no test coverage detected