Skip to content
Snippets Groups Projects
Commit 59b41a23 authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

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

parent e427e0ce
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment