Commit 59b41a23 authored by Chris Lamb's avatar Chris Lamb 💬

Don't append rather useless "(data)" suffix.

parent e427e0ce
......@@ -369,11 +369,11 @@ class File(object, metaclass=abc.ABCMeta):
difference = self.compare_bytes(other, source=source)
if difference is None:
return None
suffix = ' ({})'.format(self.magic_file_type) \
if self.magic_file_type != 'data'
difference.add_comment(
"Format-specific differences are supported for this "
"file format but none were detected ({})".format(
self.magic_file_type,
),
"file format but none were detected{}".format(suffix))
)
except subprocess.CalledProcessError as e:
difference = self.compare_bytes(other, source=source)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment