From bbab981130fa0d7d265805f991c623728049c579 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Fri, 3 Mar 2023 11:23:22 -0600 Subject: [PATCH] Trivial simplification of wr No need to issue two write commands. Signed-off-by: Felipe Contreras --- hg-fast-export.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hg-fast-export.py b/hg-fast-export.py index 1c07ae4..bec82ec 100755 --- a/hg-fast-export.py +++ b/hg-fast-export.py @@ -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):