2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-28 20:53:35 +08:00

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",