[diffoscope] 02/04: comparators.utils.file: Strip leading "." of "./" progress bar messages.s
Chris Lamb
chris at chris-lamb.co.uk
Thu Dec 29 00:17:25 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 e805e7a7f610104efc88f30ff610172f40e61c50
Author: Chris Lamb <lamby at debian.org>
Date: Wed Dec 28 23:11:45 2016 +0000
comparators.utils.file: Strip leading "." of "./" progress bar messages.s
---
diffoscope/comparators/utils/file.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/diffoscope/comparators/utils/file.py b/diffoscope/comparators/utils/file.py
index 7313698..36fc3a5 100644
--- a/diffoscope/comparators/utils/file.py
+++ b/diffoscope/comparators/utils/file.py
@@ -109,7 +109,9 @@ class File(object, metaclass=abc.ABCMeta):
@property
def progress_name(self):
- return self._name
+ x = self._name
+
+ return x[1:] if x.startswith('./') else x
@property
def magic_file_type(self):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the diffoscope
mailing list