[diffoscope] 05/05: comparators.image: Drop now-unnecessary recognizes methods. Thanks Mattia!

Chris Lamb chris at chris-lamb.co.uk
Sun Jan 15 12:52:37 CET 2017


This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository diffoscope.

commit 7dda6eb28087fe293e0c5e4397b789147fc0c6a7
Author: Chris Lamb <lamby at debian.org>
Date:   Sun Jan 15 22:50:12 2017 +1100

    comparators.image: Drop now-unnecessary recognizes methods. Thanks Mattia!
    
    Signed-off-by: Chris Lamb <lamby at debian.org>
---
 diffoscope/comparators/image.py | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/diffoscope/comparators/image.py b/diffoscope/comparators/image.py
index 6828209..5006e13 100644
--- a/diffoscope/comparators/image.py
+++ b/diffoscope/comparators/image.py
@@ -80,10 +80,6 @@ class Identify(Command):
 class JPEGImageFile(File):
     RE_FILE_TYPE = re.compile(r'\bJPEG image data\b')
 
-    @staticmethod
-    def recognizes(file):
-        return JPEGImageFile.RE_FILE_TYPE.search(file.magic_file_type)
-
     def compare_details(self, other, source=None):
         return [
             Difference.from_command(Img2Txt, self.path, other.path),
@@ -98,10 +94,6 @@ class JPEGImageFile(File):
 class ICOImageFile(File):
     RE_FILE_TYPE = re.compile(r'\bMS Windows icon resource\b')
 
-    @staticmethod
-    def recognizes(file):
-        return ICOImageFile.RE_FILE_TYPE.search(file.magic_file_type)
-
     def compare_details(self, other, source=None):
         differences = []
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list