fix byte/string bug introduced in 1c46f25e

This is the error message that this commit fixes:
TypeError: sequence item 142: expected a bytes-like object, str found

Complete what 1c46f25e started, more or less.
This commit is contained in:
Matt Boswell 2016-01-31 16:20:41 -05:00
parent 4fcf7c73da
commit 4a954c547a

View File

@ -257,7 +257,7 @@ def main(latency_control):
if lines[-1]: if lines[-1]:
# no terminating newline: entry isn't complete yet! # no terminating newline: entry isn't complete yet!
hw.leftover = lines.pop() hw.leftover = lines.pop()
lines.append('') lines.append(b'')
else: else:
hw.leftover = b'' hw.leftover = b''
mux.send(0, ssnet.CMD_HOST_LIST, b'\n'.join(lines)) mux.send(0, ssnet.CMD_HOST_LIST, b'\n'.join(lines))