]> arthur.barton.de Git - bup.git/commitdiff
print_clean_line: don't print final sep when None
authorRob Browning <rlb@defaultvalue.org>
Sun, 6 May 2018 15:20:03 +0000 (10:20 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sun, 6 May 2018 15:51:44 +0000 (10:51 -0500)
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
main.py

diff --git a/main.py b/main.py
index 154c5dc393b8d7493d037e77aec2c29f69a55bdd..19675cd109e897e31fd718452ce21e3dc1e9daab 100755 (executable)
--- a/main.py
+++ b/main.py
@@ -169,7 +169,8 @@ def print_clean_line(dest, content, width, sep=None):
     os.write(dest, content)
     if len(content) < width:
         os.write(dest, ' ' * (width - len(content)))
-    os.write(dest, sep)
+    if sep:
+        os.write(dest, sep)
 
 def filter_output(src_out, src_err, dest_out, dest_err):
     """Transfer data from src_out to dest_out and src_err to dest_err via