[Git][reproducible-builds/diffoscope][master] etoomuchsun

Chris Lamb gitlab at salsa.debian.org
Mon May 21 19:05:44 CEST 2018


Chris Lamb pushed to branch master at Reproducible Builds / diffoscope


Commits:
6eac9f69 by Chris Lamb at 2018-05-21T19:05:25+02:00
etoomuchsun

Gbp-Dch: ignore

- - - - -


1 changed file:

- diffoscope/comparators/utils/file.py


Changes:

=====================================
diffoscope/comparators/utils/file.py
=====================================
--- a/diffoscope/comparators/utils/file.py
+++ b/diffoscope/comparators/utils/file.py
@@ -370,11 +370,10 @@ class File(object, metaclass=abc.ABCMeta):
                     if difference is None:
                         return None
                     suffix = ' ({})'.format(self.magic_file_type) \
-                        if self.magic_file_type != 'data':
+                        if self.magic_file_type != 'data' else ''
                     difference.add_comment(
                         "Format-specific differences are supported for this "
                         "file format but none were detected{}".format(suffix))
-                    )
             except subprocess.CalledProcessError as e:
                 difference = self.compare_bytes(other, source=source)
                 if e.output:



View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/commit/6eac9f6966a3a3ff5373ddeb25c42833180f38c5

---
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/commit/6eac9f6966a3a3ff5373ddeb25c42833180f38c5
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20180521/1ab6415f/attachment.html>


More information about the rb-commits mailing list