Trivial simplification of wr

No need to issue two write commands.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
Felipe Contreras
2023-03-03 11:23:22 -06:00
committed by Frej Drejhammar
parent c3cbf1e04d
commit bbab981130

View File

@@ -51,8 +51,7 @@ def wr_no_nl(msg=b''):
stdout_buffer.write(msg)
def wr(msg=b''):
wr_no_nl(msg)
stdout_buffer.write(b'\n')
wr_no_nl(msg + b'\n')
#map(lambda x: sys.stderr.write('\t[%s]\n' % x),msg.split('\n'))
def wr_data(data):