diff --git a/diskimage_builder/elements.py b/diskimage_builder/elements.py index d8504428..402284f6 100644 --- a/diskimage_builder/elements.py +++ b/diskimage_builder/elements.py @@ -14,7 +14,6 @@ # under the License. import argparse -from errno import ENOENT import os import sys diff --git a/diskimage_builder/test_elementdeps.py b/diskimage_builder/test_elementdeps.py index 4937e4d6..7e988510 100644 --- a/diskimage_builder/test_elementdeps.py +++ b/diskimage_builder/test_elementdeps.py @@ -16,7 +16,7 @@ import os from testtools import TestCase -from fixtures import Fixture, EnvironmentVariable, TempDir +from fixtures import EnvironmentVariable, TempDir from diskimage_builder.elements import expand_dependencies from diskimage_builder.elements import get_elements_dir diff --git a/diskimage_builder/test_elements.py b/diskimage_builder/test_elements.py index 503277e8..fa6d9d24 100644 --- a/diskimage_builder/test_elements.py +++ b/diskimage_builder/test_elements.py @@ -15,7 +15,6 @@ import os import sys -import unittest class StubPackage: diff --git a/tox.ini b/tox.ini index decc736c..a178c0b5 100644 --- a/tox.ini +++ b/tox.ini @@ -40,7 +40,7 @@ commands = bash -c 'if [ ! -d ./.testrepository ] ; then testr init ; fi' downloadcache = ~/cache/pip [flake8] -ignore = E125,F,H +ignore = E125,H builtins = _ exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build