[diffoscope] 02/04: Remove unused imports.
Chris Lamb
chris at chris-lamb.co.uk
Sat Sep 9 12:29:50 CEST 2017
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository diffoscope.
commit 42282463aef230cbb628f15e54c3b639daaa45a7
Author: Chris Lamb <lamby at debian.org>
Date: Sat Sep 9 11:28:06 2017 +0100
Remove unused imports.
---
diffoscope/comparators/fontconfig.py | 1 -
diffoscope/comparators/ipk.py | 2 --
diffoscope/comparators/json.py | 1 -
diffoscope/comparators/zip.py | 1 -
diffoscope/presenters/html/html.py | 2 +-
tests/comparators/test_apk.py | 1 -
tests/comparators/test_rdata.py | 2 --
tests/test_readers.py | 2 --
8 files changed, 1 insertion(+), 11 deletions(-)
diff --git a/diffoscope/comparators/fontconfig.py b/diffoscope/comparators/fontconfig.py
index 0ba312e..475c6ca 100644
--- a/diffoscope/comparators/fontconfig.py
+++ b/diffoscope/comparators/fontconfig.py
@@ -22,7 +22,6 @@ import struct
from diffoscope.difference import Difference
from .utils.file import File
-from .utils.command import Command
class FontconfigCacheFile(File):
diff --git a/diffoscope/comparators/ipk.py b/diffoscope/comparators/ipk.py
index 12db3f2..7ba2359 100644
--- a/diffoscope/comparators/ipk.py
+++ b/diffoscope/comparators/ipk.py
@@ -18,8 +18,6 @@
# You should have received a copy of the GNU General Public License
# along with diffoscope. If not, see <https://www.gnu.org/licenses/>.
-import re
-
from .gzip import GzipFile
diff --git a/diffoscope/comparators/json.py b/diffoscope/comparators/json.py
index 313127a..76e2c6c 100644
--- a/diffoscope/comparators/json.py
+++ b/diffoscope/comparators/json.py
@@ -17,7 +17,6 @@
# You should have received a copy of the GNU General Public License
# along with diffoscope. If not, see <https://www.gnu.org/licenses/>.
-import re
import json
import collections
diff --git a/diffoscope/comparators/zip.py b/diffoscope/comparators/zip.py
index 9cd9247..c208b2b 100644
--- a/diffoscope/comparators/zip.py
+++ b/diffoscope/comparators/zip.py
@@ -22,7 +22,6 @@ import sys
import shutil
import os.path
import zipfile
-import contextlib
from diffoscope.tools import tool_required
from diffoscope.difference import Difference
diff --git a/diffoscope/presenters/html/html.py b/diffoscope/presenters/html/html.py
index 625f418..d4d0636 100644
--- a/diffoscope/presenters/html/html.py
+++ b/diffoscope/presenters/html/html.py
@@ -50,7 +50,7 @@ from diffoscope.diff import SideBySideDiff, DIFFON, DIFFOFF
from ..icon import FAVICON_BASE64
from ..utils import sizeof_fmt, PrintLimitReached, DiffBlockLimitReached, \
- create_limited_print_func, Presenter, make_printer, PartialString
+ Presenter, make_printer, PartialString
from . import templates
diff --git a/tests/comparators/test_apk.py b/tests/comparators/test_apk.py
index 8df94e2..4b021b4 100644
--- a/tests/comparators/test_apk.py
+++ b/tests/comparators/test_apk.py
@@ -20,7 +20,6 @@
import pytest
from diffoscope.comparators.apk import ApkFile
-from diffoscope.comparators.xml import XMLFile
from ..utils.data import load_fixture, get_data
from ..utils.tools import skip_unless_tools_exist
diff --git a/tests/comparators/test_rdata.py b/tests/comparators/test_rdata.py
index 77ba972..f45e7ea 100644
--- a/tests/comparators/test_rdata.py
+++ b/tests/comparators/test_rdata.py
@@ -21,10 +21,8 @@ import pytest
from diffoscope.comparators.gzip import GzipFile
-from ..utils import diff_ignore_line_numbers
from ..utils.data import load_fixture, get_data
from ..utils.tools import skip_unless_tools_exist
-from ..utils.nonexisting import assert_non_existing
file1 = load_fixture('test1.rdx')
diff --git a/tests/test_readers.py b/tests/test_readers.py
index 9b48931..d4fea55 100644
--- a/tests/test_readers.py
+++ b/tests/test_readers.py
@@ -17,8 +17,6 @@
# You should have received a copy of the GNU General Public License
# along with diffoscope. If not, see <https://www.gnu.org/licenses/>.
-import os
-import re
import pytest
from diffoscope.main import main
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the diffoscope
mailing list