fix non-numpy read_bool_byte

This commit is contained in:
Jan Petykiewicz 2020-04-16 22:41:53 -07:00
parent deb0fe3bef
commit b5a7c9a7ad

View File

@ -147,7 +147,7 @@ else:
:param stream: Stream to read from.
:return: A list of 8 booleans corresponding to the bits (MSB first).
"""
byte = _read(1)[0]
byte = _read(stream, 1)[0]
bits = [(byte >> i) & 0x01 for i in reversed(range(8))]
return bits