[Reproducible-builds] [reproducible/diffoscope.git: PATCH 3/5] Remove unused and duplicate imports.
Chris Lamb
lamby at debian.org
Thu Aug 20 20:05:16 UTC 2015
Signed-off-by: Chris Lamb <lamby at debian.org>
---
diffoscope/comparators/binary.py | 2 +-
diffoscope/comparators/bzip2.py | 1 -
diffoscope/comparators/cpio.py | 5 +----
diffoscope/comparators/deb.py | 1 -
diffoscope/comparators/debian.py | 4 +---
diffoscope/comparators/device.py | 1 -
diffoscope/comparators/elf.py | 1 -
diffoscope/comparators/fonts.py | 2 --
diffoscope/comparators/gettext.py | 1 -
diffoscope/comparators/gzip.py | 6 ++----
diffoscope/comparators/ipk.py | 2 --
diffoscope/comparators/iso9660.py | 4 +---
diffoscope/comparators/libarchive.py | 1 -
diffoscope/comparators/pdf.py | 3 +--
diffoscope/comparators/png.py | 1 -
diffoscope/comparators/rpm.py | 7 ++-----
diffoscope/comparators/squashfs.py | 4 ----
diffoscope/comparators/tar.py | 1 -
diffoscope/comparators/text.py | 1 -
diffoscope/comparators/utils.py | 7 ++-----
diffoscope/comparators/xz.py | 2 --
diffoscope/comparators/zip.py | 4 ----
diffoscope/difference.py | 2 --
diffoscope/presenters/html.py | 4 ----
diffoscope/presenters/text.py | 2 --
tests/comparators/test_binary.py | 1 -
tests/comparators/test_cpio.py | 2 --
tests/comparators/test_deb.py | 2 --
tests/comparators/test_directory.py | 1 -
tests/comparators/test_elf.py | 1 -
tests/comparators/test_fonts.py | 1 -
tests/comparators/test_gettext.py | 1 -
tests/comparators/test_ipk.py | 2 --
tests/comparators/test_iso9660.py | 2 --
tests/comparators/test_java.py | 1 -
tests/comparators/test_mono.py | 1 -
tests/comparators/test_pdf.py | 1 -
tests/comparators/test_png.py | 1 -
tests/comparators/test_rpm.py | 2 --
tests/comparators/test_sqlite.py | 1 -
tests/comparators/test_squashfs.py | 2 --
tests/comparators/test_tar.py | 2 --
tests/comparators/test_text.py | 1 -
tests/comparators/test_utils.py | 1 -
tests/comparators/test_zip.py | 2 --
45 files changed, 11 insertions(+), 86 deletions(-)
diff --git a/diffoscope/comparators/binary.py b/diffoscope/comparators/binary.py
index e92ca82..843d360 100644
--- a/diffoscope/comparators/binary.py
+++ b/diffoscope/comparators/binary.py
@@ -17,7 +17,7 @@
# You should have received a copy of the GNU General Public License
# along with diffoscope. If not, see <http://www.gnu.org/licenses/>.
-from abc import ABCMeta, abstractproperty, abstractmethod
+from abc import ABCMeta, abstractmethod
from binascii import hexlify
from contextlib import contextmanager
from functools import wraps
diff --git a/diffoscope/comparators/bzip2.py b/diffoscope/comparators/bzip2.py
index 49156e2..6356716 100644
--- a/diffoscope/comparators/bzip2.py
+++ b/diffoscope/comparators/bzip2.py
@@ -17,7 +17,6 @@
# You should have received a copy of the GNU General Public License
# along with diffoscope. If not, see <http://www.gnu.org/licenses/>.
-from contextlib import contextmanager
import os.path
import re
import subprocess
diff --git a/diffoscope/comparators/cpio.py b/diffoscope/comparators/cpio.py
index 53ca6e4..e936788 100644
--- a/diffoscope/comparators/cpio.py
+++ b/diffoscope/comparators/cpio.py
@@ -19,10 +19,7 @@
# along with diffoscope. If not, see <http://www.gnu.org/licenses/>.
import re
-import subprocess
-import os.path
-import diffoscope.comparators
-from diffoscope import logger, tool_required
+from diffoscope import tool_required
from diffoscope.comparators.binary import File, needs_content
from diffoscope.comparators.libarchive import LibarchiveContainer
from diffoscope.comparators.utils import Command
diff --git a/diffoscope/comparators/deb.py b/diffoscope/comparators/deb.py
index f5257b9..3283ad3 100644
--- a/diffoscope/comparators/deb.py
+++ b/diffoscope/comparators/deb.py
@@ -24,7 +24,6 @@ import os.path
from debian.arfile import ArFile
from diffoscope import logger
from diffoscope.difference import Difference
-import diffoscope.comparators
from diffoscope.comparators.binary import File, needs_content
from diffoscope.comparators.utils import \
Archive, ArchiveMember, get_ar_content
diff --git a/diffoscope/comparators/debian.py b/diffoscope/comparators/debian.py
index 6f0e4e8..45c03c4 100644
--- a/diffoscope/comparators/debian.py
+++ b/diffoscope/comparators/debian.py
@@ -20,13 +20,11 @@
from contextlib import contextmanager
import os.path
import re
-import sys
-from diffoscope import logger
from diffoscope.changes import Changes
import diffoscope.comparators
from diffoscope.comparators.binary import File, needs_content
from diffoscope.comparators.utils import Container
-from diffoscope.difference import Difference, get_source
+from diffoscope.difference import Difference
DOT_CHANGES_FIELDS = [
diff --git a/diffoscope/comparators/device.py b/diffoscope/comparators/device.py
index 9833d29..ce23e47 100644
--- a/diffoscope/comparators/device.py
+++ b/diffoscope/comparators/device.py
@@ -19,7 +19,6 @@
from contextlib import contextmanager
import os
-from stat import S_ISCHR, S_ISBLK
import tempfile
from diffoscope.comparators.binary import File, FilesystemFile, needs_content
from diffoscope.comparators.utils import format_device
diff --git a/diffoscope/comparators/elf.py b/diffoscope/comparators/elf.py
index 3520e62..a0fd9c2 100644
--- a/diffoscope/comparators/elf.py
+++ b/diffoscope/comparators/elf.py
@@ -19,7 +19,6 @@
import os.path
import re
-import subprocess
from diffoscope import tool_required
from diffoscope.comparators.binary import File, needs_content
from diffoscope.comparators.utils import get_ar_content, Command
diff --git a/diffoscope/comparators/fonts.py b/diffoscope/comparators/fonts.py
index c20e31b..859c924 100644
--- a/diffoscope/comparators/fonts.py
+++ b/diffoscope/comparators/fonts.py
@@ -17,9 +17,7 @@
# You should have received a copy of the GNU General Public License
# along with diffoscope. If not, see <http://www.gnu.org/licenses/>.
-import locale
import re
-import subprocess
from diffoscope import tool_required
from diffoscope.comparators.binary import File, needs_content
from diffoscope.comparators.utils import Command
diff --git a/diffoscope/comparators/gettext.py b/diffoscope/comparators/gettext.py
index 6c23d8c..97a488e 100644
--- a/diffoscope/comparators/gettext.py
+++ b/diffoscope/comparators/gettext.py
@@ -18,7 +18,6 @@
# along with diffoscope. If not, see <http://www.gnu.org/licenses/>.
import re
-import subprocess
from StringIO import StringIO
from diffoscope import tool_required
from diffoscope.comparators.binary import File, needs_content
diff --git a/diffoscope/comparators/gzip.py b/diffoscope/comparators/gzip.py
index c543604..b4c1c9d 100644
--- a/diffoscope/comparators/gzip.py
+++ b/diffoscope/comparators/gzip.py
@@ -17,16 +17,14 @@
# You should have received a copy of the GNU General Public License
# along with diffoscope. If not, see <http://www.gnu.org/licenses/>.
-from contextlib import contextmanager
import re
import subprocess
import os.path
import diffoscope.comparators
-from diffoscope import tool_required
-from diffoscope.comparators.binary import File, needs_content
+from diffoscope import logger, tool_required
+from diffoscope.comparators.binary import needs_content
from diffoscope.comparators.utils import Archive, get_compressed_content_name
from diffoscope.difference import Difference
-from diffoscope import logger, tool_required
class GzipContainer(Archive):
diff --git a/diffoscope/comparators/ipk.py b/diffoscope/comparators/ipk.py
index ad5e87d..6cde8c7 100644
--- a/diffoscope/comparators/ipk.py
+++ b/diffoscope/comparators/ipk.py
@@ -19,9 +19,7 @@
# along with diffoscope. If not, see <http://www.gnu.org/licenses/>.
import re
-import os.path
from diffoscope.comparators.gzip import GzipFile
-from diffoscope.difference import Difference
class IpkFile(GzipFile):
diff --git a/diffoscope/comparators/iso9660.py b/diffoscope/comparators/iso9660.py
index f1687b2..8f2693b 100644
--- a/diffoscope/comparators/iso9660.py
+++ b/diffoscope/comparators/iso9660.py
@@ -17,11 +17,9 @@
# You should have received a copy of the GNU General Public License
# along with diffoscope. If not, see <http://www.gnu.org/licenses/>.
-import os.path
import re
import subprocess
-import diffoscope.comparators
-from diffoscope import logger, tool_required
+from diffoscope import tool_required
from diffoscope.comparators.binary import File, needs_content
from diffoscope.comparators.libarchive import LibarchiveContainer
from diffoscope.comparators.utils import Command
diff --git a/diffoscope/comparators/libarchive.py b/diffoscope/comparators/libarchive.py
index 68658a1..702324a 100644
--- a/diffoscope/comparators/libarchive.py
+++ b/diffoscope/comparators/libarchive.py
@@ -21,7 +21,6 @@ from __future__ import absolute_import
from contextlib import contextmanager
import ctypes
-from itertools import dropwhile
import os.path
import libarchive
from diffoscope import logger
diff --git a/diffoscope/comparators/pdf.py b/diffoscope/comparators/pdf.py
index a8385dc..2f15733 100644
--- a/diffoscope/comparators/pdf.py
+++ b/diffoscope/comparators/pdf.py
@@ -18,11 +18,10 @@
# along with diffoscope. If not, see <http://www.gnu.org/licenses/>.
import re
-import subprocess
from diffoscope import tool_required
from diffoscope.comparators.binary import File, needs_content
from diffoscope.comparators.utils import Command
-from diffoscope.difference import Difference, get_source
+from diffoscope.difference import Difference
class Pdftotext(Command):
diff --git a/diffoscope/comparators/png.py b/diffoscope/comparators/png.py
index 62b1ac2..22f81c0 100644
--- a/diffoscope/comparators/png.py
+++ b/diffoscope/comparators/png.py
@@ -19,7 +19,6 @@
from functools import partial
import re
-import subprocess
from diffoscope import tool_required
from diffoscope.comparators.binary import File, needs_content
from diffoscope.comparators.utils import Command
diff --git a/diffoscope/comparators/rpm.py b/diffoscope/comparators/rpm.py
index faebc3e..2b8d23b 100644
--- a/diffoscope/comparators/rpm.py
+++ b/diffoscope/comparators/rpm.py
@@ -20,16 +20,13 @@
from __future__ import absolute_import
import os.path
-import re
import subprocess
-from contextlib import contextmanager
import rpm
from diffoscope import logger, tool_required
-import diffoscope.comparators
from diffoscope.comparators.rpm_fallback import AbstractRpmFile
-from diffoscope.comparators.binary import File, FilesystemFile, needs_content
+from diffoscope.comparators.binary import needs_content
from diffoscope.comparators.utils import Archive, make_temp_directory
-from diffoscope.difference import Difference, get_source
+from diffoscope.difference import Difference
def get_rpm_header(path, ts):
header = ''
diff --git a/diffoscope/comparators/squashfs.py b/diffoscope/comparators/squashfs.py
index bfe939c..7b39e22 100644
--- a/diffoscope/comparators/squashfs.py
+++ b/diffoscope/comparators/squashfs.py
@@ -21,18 +21,14 @@
from contextlib import contextmanager
import re
import subprocess
-import os.path
import stat
-import diffoscope.comparators
from diffoscope import logger, tool_required
from diffoscope.comparators.binary import File, needs_content
from diffoscope.comparators.device import Device
from diffoscope.comparators.directory import Directory
-from diffoscope.comparators.libarchive import LibarchiveContainer
from diffoscope.comparators.symlink import Symlink
from diffoscope.comparators.utils import Archive, ArchiveMember, Command
from diffoscope.difference import Difference
-from diffoscope import logger
class SquashfsSuperblock(Command):
diff --git a/diffoscope/comparators/tar.py b/diffoscope/comparators/tar.py
index 3e6c86c..07a7e75 100644
--- a/diffoscope/comparators/tar.py
+++ b/diffoscope/comparators/tar.py
@@ -25,7 +25,6 @@ import sys
import tarfile
from diffoscope import logger
from diffoscope.difference import Difference
-import diffoscope.comparators
from diffoscope.comparators.binary import File, needs_content
from diffoscope.comparators.device import Device
from diffoscope.comparators.directory import Directory
diff --git a/diffoscope/comparators/text.py b/diffoscope/comparators/text.py
index 8112925..d8cd699 100644
--- a/diffoscope/comparators/text.py
+++ b/diffoscope/comparators/text.py
@@ -21,7 +21,6 @@ import codecs
import re
from diffoscope.comparators.binary import File, needs_content
from diffoscope.difference import Difference
-from diffoscope import logger
class TextFile(File):
diff --git a/diffoscope/comparators/utils.py b/diffoscope/comparators/utils.py
index e39e5ec..4401046 100644
--- a/diffoscope/comparators/utils.py
+++ b/diffoscope/comparators/utils.py
@@ -20,8 +20,6 @@
from abc import ABCMeta, abstractmethod
from contextlib import contextmanager
# The following would be shutil.which in Python 3.3
-import hashlib
-import re
import os
import shutil
from stat import S_ISCHR, S_ISBLK
@@ -30,10 +28,9 @@ import subprocess
import tempfile
from threading import Thread
import diffoscope.comparators
-from diffoscope.comparators.binary import \
- File, compare_binary_files
+from diffoscope.comparators.binary import File
from diffoscope.difference import Difference
-from diffoscope import logger, RequiredToolNotFound
+from diffoscope import logger
@contextmanager
diff --git a/diffoscope/comparators/xz.py b/diffoscope/comparators/xz.py
index b222a19..26955dd 100644
--- a/diffoscope/comparators/xz.py
+++ b/diffoscope/comparators/xz.py
@@ -17,12 +17,10 @@
# You should have received a copy of the GNU General Public License
# along with diffoscope. If not, see <http://www.gnu.org/licenses/>.
-from contextlib import contextmanager
import os.path
import re
import subprocess
import diffoscope.comparators
-from diffoscope import tool_required
from diffoscope.comparators.binary import File, needs_content
from diffoscope.comparators.utils import Archive, get_compressed_content_name
from diffoscope import logger, tool_required
diff --git a/diffoscope/comparators/zip.py b/diffoscope/comparators/zip.py
index 4275b51..ceca4b3 100644
--- a/diffoscope/comparators/zip.py
+++ b/diffoscope/comparators/zip.py
@@ -17,13 +17,9 @@
# You should have received a copy of the GNU General Public License
# along with diffoscope. If not, see <http://www.gnu.org/licenses/>.
-import os.path
import re
-import subprocess
import zipfile
-from diffoscope import logger
from diffoscope.difference import Difference
-import diffoscope.comparators
from diffoscope import tool_required
from diffoscope.comparators.binary import File, needs_content
from diffoscope.comparators.directory import Directory
diff --git a/diffoscope/difference.py b/diffoscope/difference.py
index 7d43c52..28328eb 100644
--- a/diffoscope/difference.py
+++ b/diffoscope/difference.py
@@ -20,8 +20,6 @@
from contextlib import contextmanager
import os
import os.path
-from functools import partial
-from tempfile import NamedTemporaryFile
import re
import subprocess
import sys
diff --git a/diffoscope/presenters/html.py b/diffoscope/presenters/html.py
index b80b3da..b54d6ab 100644
--- a/diffoscope/presenters/html.py
+++ b/diffoscope/presenters/html.py
@@ -32,16 +32,12 @@
#
from __future__ import print_function
-import os.path
import cgi
import re
-import subprocess
import sys
-from tempfile import NamedTemporaryFile
from xml.sax.saxutils import escape
from diffoscope import logger, VERSION
from diffoscope.config import Config
-from diffoscope.comparators.utils import make_temp_directory
from diffoscope.presenters.icon import FAVICON_BASE64
# minimum line size, we add a zero-sized breakable space every
diff --git a/diffoscope/presenters/text.py b/diffoscope/presenters/text.py
index 01715d4..2043c7b 100644
--- a/diffoscope/presenters/text.py
+++ b/diffoscope/presenters/text.py
@@ -20,8 +20,6 @@
# along with diffoscope. If not, see <http://www.gnu.org/licenses/>.
import sys
-import difflib
-import locale
from diffoscope import logger
diff --git a/tests/comparators/test_binary.py b/tests/comparators/test_binary.py
index ebf2cca..7ff1754 100644
--- a/tests/comparators/test_binary.py
+++ b/tests/comparators/test_binary.py
@@ -19,7 +19,6 @@
# along with diffoscope. If not, see <http://www.gnu.org/licenses/>.
import os.path
-import shutil
import subprocess
import pytest
from diffoscope.comparators import specialize
diff --git a/tests/comparators/test_cpio.py b/tests/comparators/test_cpio.py
index 33d3546..12682e9 100644
--- a/tests/comparators/test_cpio.py
+++ b/tests/comparators/test_cpio.py
@@ -18,9 +18,7 @@
# You should have received a copy of the GNU General Public License
# along with diffoscope. If not, see <http://www.gnu.org/licenses/>.
-import codecs
import os.path
-import shutil
import pytest
from diffoscope.comparators import specialize
from diffoscope.comparators.binary import FilesystemFile
diff --git a/tests/comparators/test_deb.py b/tests/comparators/test_deb.py
index 223fecb..7000521 100644
--- a/tests/comparators/test_deb.py
+++ b/tests/comparators/test_deb.py
@@ -18,9 +18,7 @@
# You should have received a copy of the GNU General Public License
# along with diffoscope. If not, see <http://www.gnu.org/licenses/>.
-import codecs
import os.path
-import shutil
import pytest
import diffoscope.comparators
from diffoscope.comparators import specialize
diff --git a/tests/comparators/test_directory.py b/tests/comparators/test_directory.py
index 7f54b76..cf62c1e 100644
--- a/tests/comparators/test_directory.py
+++ b/tests/comparators/test_directory.py
@@ -24,7 +24,6 @@ import os
import os.path
import shutil
import pytest
-import diffoscope.comparators.binary
from diffoscope.comparators.directory import compare_directories
from diffoscope.presenters.text import output_text
diff --git a/tests/comparators/test_elf.py b/tests/comparators/test_elf.py
index fbc8c3a..fd38289 100644
--- a/tests/comparators/test_elf.py
+++ b/tests/comparators/test_elf.py
@@ -19,7 +19,6 @@
# along with diffoscope. If not, see <http://www.gnu.org/licenses/>.
import os.path
-import shutil
import pytest
from diffoscope.comparators import specialize
from diffoscope.comparators.binary import FilesystemFile
diff --git a/tests/comparators/test_fonts.py b/tests/comparators/test_fonts.py
index 0000e5a..763670b 100644
--- a/tests/comparators/test_fonts.py
+++ b/tests/comparators/test_fonts.py
@@ -19,7 +19,6 @@
# along with diffoscope. If not, see <http://www.gnu.org/licenses/>.
import os.path
-import shutil
import pytest
from diffoscope.comparators import specialize
from diffoscope.comparators.binary import FilesystemFile
diff --git a/tests/comparators/test_gettext.py b/tests/comparators/test_gettext.py
index 7898561..f7e9f20 100644
--- a/tests/comparators/test_gettext.py
+++ b/tests/comparators/test_gettext.py
@@ -20,7 +20,6 @@
import codecs
import os.path
-import shutil
import pytest
from diffoscope.comparators import specialize
from diffoscope.comparators.binary import FilesystemFile
diff --git a/tests/comparators/test_ipk.py b/tests/comparators/test_ipk.py
index 66f599c..ac14747 100644
--- a/tests/comparators/test_ipk.py
+++ b/tests/comparators/test_ipk.py
@@ -18,9 +18,7 @@
# You should have received a copy of the GNU General Public License
# along with diffoscope. If not, see <http://www.gnu.org/licenses/>.
-import codecs
import os.path
-import shutil
import pytest
from diffoscope.comparators import specialize
from diffoscope.comparators.binary import FilesystemFile
diff --git a/tests/comparators/test_iso9660.py b/tests/comparators/test_iso9660.py
index 7bd5fc5..b0ed74a 100644
--- a/tests/comparators/test_iso9660.py
+++ b/tests/comparators/test_iso9660.py
@@ -18,9 +18,7 @@
# You should have received a copy of the GNU General Public License
# along with diffoscope. If not, see <http://www.gnu.org/licenses/>.
-import codecs
import os.path
-import shutil
import pytest
from diffoscope.comparators import specialize
from diffoscope.comparators.binary import FilesystemFile
diff --git a/tests/comparators/test_java.py b/tests/comparators/test_java.py
index 2c311a2..967a6ea 100644
--- a/tests/comparators/test_java.py
+++ b/tests/comparators/test_java.py
@@ -19,7 +19,6 @@
# along with diffoscope. If not, see <http://www.gnu.org/licenses/>.
import os.path
-import shutil
import pytest
from diffoscope.comparators import specialize
from diffoscope.comparators.binary import FilesystemFile
diff --git a/tests/comparators/test_mono.py b/tests/comparators/test_mono.py
index 6f74ac3..da87f3d 100644
--- a/tests/comparators/test_mono.py
+++ b/tests/comparators/test_mono.py
@@ -19,7 +19,6 @@
# along with diffoscope. If not, see <http://www.gnu.org/licenses/>.
import os.path
-import shutil
import pytest
from diffoscope.comparators import specialize
from diffoscope.comparators.binary import FilesystemFile
diff --git a/tests/comparators/test_pdf.py b/tests/comparators/test_pdf.py
index 4e28524..734201d 100644
--- a/tests/comparators/test_pdf.py
+++ b/tests/comparators/test_pdf.py
@@ -19,7 +19,6 @@
# along with diffoscope. If not, see <http://www.gnu.org/licenses/>.
import os.path
-import shutil
import pytest
from diffoscope.comparators import specialize
from diffoscope.comparators.binary import FilesystemFile
diff --git a/tests/comparators/test_png.py b/tests/comparators/test_png.py
index 29ae171..fcdb7f1 100644
--- a/tests/comparators/test_png.py
+++ b/tests/comparators/test_png.py
@@ -19,7 +19,6 @@
# along with diffoscope. If not, see <http://www.gnu.org/licenses/>.
import os.path
-import shutil
import pytest
from diffoscope.comparators import specialize
from diffoscope.comparators.binary import FilesystemFile
diff --git a/tests/comparators/test_rpm.py b/tests/comparators/test_rpm.py
index fcb3a9d..80b8b26 100644
--- a/tests/comparators/test_rpm.py
+++ b/tests/comparators/test_rpm.py
@@ -18,9 +18,7 @@
# You should have received a copy of the GNU General Public License
# along with diffoscope. If not, see <http://www.gnu.org/licenses/>.
-import codecs
import os.path
-import shutil
import pytest
from diffoscope.comparators import specialize
from diffoscope.comparators.binary import FilesystemFile
diff --git a/tests/comparators/test_sqlite.py b/tests/comparators/test_sqlite.py
index 0bb97b7..6083fac 100644
--- a/tests/comparators/test_sqlite.py
+++ b/tests/comparators/test_sqlite.py
@@ -19,7 +19,6 @@
# along with diffoscope. If not, see <http://www.gnu.org/licenses/>.
import os.path
-import shutil
import pytest
from diffoscope.comparators import specialize
from diffoscope.comparators.binary import FilesystemFile
diff --git a/tests/comparators/test_squashfs.py b/tests/comparators/test_squashfs.py
index efa58e0..d5f43e9 100644
--- a/tests/comparators/test_squashfs.py
+++ b/tests/comparators/test_squashfs.py
@@ -18,10 +18,8 @@
# You should have received a copy of the GNU General Public License
# along with diffoscope. If not, see <http://www.gnu.org/licenses/>.
-import codecs
import os.path
import pwd
-import shutil
import pytest
from diffoscope.comparators import specialize
from diffoscope.comparators.binary import FilesystemFile
diff --git a/tests/comparators/test_tar.py b/tests/comparators/test_tar.py
index bb69ebc..ea765a7 100644
--- a/tests/comparators/test_tar.py
+++ b/tests/comparators/test_tar.py
@@ -18,9 +18,7 @@
# You should have received a copy of the GNU General Public License
# along with diffoscope. If not, see <http://www.gnu.org/licenses/>.
-import codecs
import os.path
-import shutil
import pytest
from diffoscope.comparators import specialize
from diffoscope.comparators.binary import FilesystemFile
diff --git a/tests/comparators/test_text.py b/tests/comparators/test_text.py
index c61a27a..98a7528 100644
--- a/tests/comparators/test_text.py
+++ b/tests/comparators/test_text.py
@@ -23,7 +23,6 @@ import os.path
import pytest
from diffoscope.comparators import specialize
from diffoscope.comparators.binary import FilesystemFile
-from diffoscope.comparators.text import TextFile
@pytest.fixture
def ascii1():
diff --git a/tests/comparators/test_utils.py b/tests/comparators/test_utils.py
index 6e89d76..68b51f0 100644
--- a/tests/comparators/test_utils.py
+++ b/tests/comparators/test_utils.py
@@ -23,7 +23,6 @@ import os.path
import pytest
from diffoscope.comparators import specialize
from diffoscope.comparators.binary import FilesystemFile
-from diffoscope.comparators.text import TextFile
@pytest.fixture
def fuzzy_tar1():
diff --git a/tests/comparators/test_zip.py b/tests/comparators/test_zip.py
index 65389c5..356e6bd 100644
--- a/tests/comparators/test_zip.py
+++ b/tests/comparators/test_zip.py
@@ -18,9 +18,7 @@
# You should have received a copy of the GNU General Public License
# along with diffoscope. If not, see <http://www.gnu.org/licenses/>.
-import codecs
import os.path
-import shutil
import pytest
from diffoscope.comparators import specialize
from diffoscope.comparators.binary import FilesystemFile
--
2.5.0
More information about the Reproducible-builds
mailing list