[diffoscope] 01/04: comparators.GzipFile: Inherit from File.

Chris Lamb chris at chris-lamb.co.uk
Tue Jan 17 01:13:38 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 01170d31768bebf75986b29a66bba29d1bebc78f
Author: Chris Lamb <lamby at debian.org>
Date:   Tue Jan 17 09:11:52 2017 +1100

    comparators.GzipFile: Inherit from File.
    
    Signed-off-by: Chris Lamb <lamby at debian.org>
---
 diffoscope/comparators/gzip.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/diffoscope/comparators/gzip.py b/diffoscope/comparators/gzip.py
index 565c3b4..f81bac5 100644
--- a/diffoscope/comparators/gzip.py
+++ b/diffoscope/comparators/gzip.py
@@ -26,6 +26,8 @@ import collections
 from diffoscope.tools import tool_required
 from diffoscope.difference import Difference
 
+
+from .utils.file import File
 from .utils.archive import Archive
 from .utils.filenames import get_compressed_content_name
 
@@ -56,7 +58,7 @@ class GzipContainer(Archive):
         return dest_path
 
 
-class GzipFile(object):
+class GzipFile(File):
     CONTAINER_CLASS = GzipContainer
     RE_FILE_TYPE = re.compile(r'^gzip compressed data\b')
 

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


More information about the diffoscope mailing list