We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 06c38c5 + 535d231 commit d4ce57bCopy full SHA for d4ce57b
1 file changed
j1b/verilator/shell.py
@@ -46,7 +46,7 @@ def serialize(self):
46
for l in lines:
47
l = l.split()
48
s += [int(b, 16) for b in l[1:17]]
49
- s = array.array('B', s).tostring().ljust(32768, chr(0xff))
+ s = array.array('B', s).tobytes().ljust(32768, bytearray((0xff,)))
50
return array.array('i', s)
51
52
if __name__ == '__main__':
0 commit comments