From 5de319d76acb01234d13d94c9f923523b016c886 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Mon, 8 Oct 2018 10:13:03 +0200 Subject: [PATCH] bit2bin: don't print string terminator --- artiq/frontend/bit2bin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/frontend/bit2bin.py b/artiq/frontend/bit2bin.py index f511c0559..df3927415 100755 --- a/artiq/frontend/bit2bin.py +++ b/artiq/frontend/bit2bin.py @@ -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",