[diffoscope] 01/02: diffoscope.progress: Use rjust over ljust; looks nicer when moving fast.

Chris Lamb chris at chris-lamb.co.uk
Thu Dec 29 10:30:44 CET 2016


This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository diffoscope.

commit 9e50fc53bc7e7ef059ba9df3323718a34ee70fcc
Author: Chris Lamb <lamby at debian.org>
Date:   Thu Dec 29 09:18:23 2016 +0000

    diffoscope.progress: Use rjust over ljust; looks nicer when moving fast.
    
    Signed-off-by: Chris Lamb <lamby at debian.org>
---
 diffoscope/progress.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diffoscope/progress.py b/diffoscope/progress.py
index 3972d37..1367019 100644
--- a/diffoscope/progress.py
+++ b/diffoscope/progress.py
@@ -101,7 +101,7 @@ class ProgressBar(object):
                 width = 20
 
                 if len(msg) <= width:
-                    return msg.ljust(width)
+                    return msg.rjust(width)
 
                 # Print the last `width` characters with an ellipsis.
                 return '…{}'.format(msg[-width + 1:])

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list