[diffoscope] 01/03: comparators/icc: rename RE_FILE_EXTENSION to RE_FILE_TYPE, as that's what the RE is looking at
Mattia Rizzolo
mattia at debian.org
Sat Jan 14 12:01:52 CET 2017
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch master
in repository diffoscope.
commit cb1aa1b6a449ca25120b40badb9b6b861689844c
Author: Mattia Rizzolo <mattia at debian.org>
Date: Sat Jan 14 10:36:30 2017 +0100
comparators/icc: rename RE_FILE_EXTENSION to RE_FILE_TYPE, as that's what the RE is looking at
---
diffoscope/comparators/icc.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/diffoscope/comparators/icc.py b/diffoscope/comparators/icc.py
index c0d6999..2ee24aa 100644
--- a/diffoscope/comparators/icc.py
+++ b/diffoscope/comparators/icc.py
@@ -33,11 +33,11 @@ class Iccdump(Command):
class IccFile(File):
- RE_FILE_EXTENSION = re.compile(r'\bColorSync (ICC|color) [Pp]rofile')
+ RE_FILE_TYPE = re.compile(r'\bColorSync (ICC|color) [Pp]rofile')
@staticmethod
def recognizes(file):
- return IccFile.RE_FILE_EXTENSION.search(file.magic_file_type)
+ return IccFile.RE_FILE_TYPE.search(file.magic_file_type)
def compare_details(self, other, source=None):
return [Difference.from_command(Iccdump, self.path, other.path)]
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the diffoscope
mailing list