bit2bin: don't print string terminator

This commit is contained in:
Robert Jördens 2018-10-08 10:13:03 +02:00
parent 9a509e5070
commit 5de319d76a

View File

@ -32,7 +32,7 @@ def bit2bin(bit, bin, flip=False):
if key in "abcd":
d = bit.read(*struct.unpack(">H", bit.read(2)))
assert d.endswith(b"\x00")
d = d.decode()
d = d[:-1].decode()
name = {
"a": "Design",
"b": "Part name",