Fix flake8 complaints - F401

F401 'dnf' imported but unused
F401 'imp' imported but unused
F401 'os' imported but unused
F401 'subprocess' imported but unused
F401 'sys' imported but unused
F401 'yum' imported but unused

JIRA: COMPOSE-4108
Signed-off-by: Haibo Lin <hlin@redhat.com>
master
Haibo Lin 4 years ago
parent 41a629969c
commit 3eddcfccd8

@ -7,8 +7,6 @@ repos.
"""
import argparse
import os
import sys
from pungi_utils.unified_isos import UnifiedISO

@ -14,7 +14,6 @@
import argparse
import logging
import os
import sys
from pungi_utils import patch_iso

@ -2,7 +2,6 @@
import difflib
import errno
import imp
import os
import shutil
import tempfile

@ -3,9 +3,6 @@
import mock
import unittest
import os
import sys
from pungi.arch import (
get_compatible_arches,
get_valid_arches,

@ -5,7 +5,6 @@ import mock
import six
import os
import sys
from pungi.phases.buildinstall import (
BuildinstallPhase,

@ -7,7 +7,6 @@ try:
except ImportError:
import unittest
import os
import sys
from six import StringIO
import kobo.conf

@ -9,7 +9,6 @@ except ImportError:
import unittest
import os
import six
import sys
import tempfile
import shutil

@ -7,7 +7,6 @@ except ImportError:
import tempfile
import os
import sys
from pungi.wrappers.comps import CompsWrapper, CompsFilter, CompsValidationError
from tests.helpers import BaseTestCase, FIXTURE_DIR

@ -6,9 +6,7 @@ try:
except ImportError:
import unittest
import os
import six
import sys
import mock
from pungi import checks

@ -5,8 +5,6 @@ try:
except ImportError:
import unittest
import argparse
import os
import sys
from parameterized import parameterized

@ -3,8 +3,6 @@
import mock
import os
import subprocess
import sys
import six
from pungi.scripts.config_validate import cli_main

@ -5,7 +5,6 @@ import mock
import six
import os
import sys
from tests import helpers
from pungi.createiso import CreateIsoOpts

@ -3,7 +3,6 @@
import mock
import os
import sys
from six.moves import StringIO
from tests import helpers

@ -7,9 +7,6 @@ except ImportError:
import six
import os
import sys
from pungi.wrappers.createrepo import CreaterepoWrapper

@ -10,7 +10,6 @@ import mock
import glob
import os
import six
import sys
from pungi.phases.createrepo import (
CreaterepoPhase,

@ -2,7 +2,6 @@
import mock
import os
import sys
from productmd.extra_files import ExtraFiles

@ -5,7 +5,6 @@ import mock
import six
import os
import sys
from tests import helpers
from pungi.phases import extra_isos

@ -10,7 +10,6 @@ from textwrap import dedent
import six
import os
import sys
from pungi.wrappers import fus

@ -1,8 +1,6 @@
# -*- coding: utf-8 -*-
import mock
import os
import sys
from pungi.phases.gather.methods import method_deps as deps
from tests import helpers

@ -4,7 +4,6 @@ from collections import namedtuple
import copy
import mock
import os
import sys
import six

@ -2,7 +2,6 @@
import mock
import os
import sys
import six

@ -3,7 +3,6 @@
import copy
import mock
import os
import sys
try:
import unittest2 as unittest

@ -7,8 +7,6 @@ except ImportError:
import mock
import six
import os
import sys
from pungi.phases.gather.sources.source_module import GatherSourceModule
from tests import helpers

@ -5,9 +5,6 @@ try:
except ImportError:
import unittest
import os
import sys
from pungi.graph import SimpleAcyclicOrientedGraph

@ -5,7 +5,6 @@ import mock
import six
import os
import sys
from pungi.phases.image_build import ImageBuildPhase, CreateImageBuildThread
from tests.helpers import DummyCompose, PungiTestCase, boom

@ -7,7 +7,6 @@ except ImportError:
import mock
import os
import sys
import tempfile
import shutil

@ -10,7 +10,6 @@ import mock
import six
import os
import sys
from pungi.module_util import Modulemd
from pungi.phases import init

@ -10,7 +10,6 @@ except ImportError:
import tempfile
import os
import sys
import six

@ -5,7 +5,6 @@ import mock
import errno
import os
import stat
import sys
from pungi import linker
from tests import helpers

@ -3,9 +3,6 @@
import mock
import os
import sys
import six
from pungi.phases.live_images import LiveImagesPhase, CreateLiveImageThread

@ -2,7 +2,6 @@
import mock
import sys
import os
import six

@ -5,9 +5,6 @@ try:
except ImportError:
import unittest
import os
import sys
import six
from pungi.wrappers.lorax import LoraxWrapper

@ -4,8 +4,6 @@ try:
import unittest2 as unittest
except ImportError:
import unittest
import os
import sys
import mock
from pungi import media_split

@ -1,6 +1,5 @@
import mock
import os
import sys
import six

@ -3,8 +3,6 @@
from datetime import datetime
import json
import mock
import os
import sys
try:
import unittest2 as unittest

@ -7,7 +7,6 @@ import operator
import os
import shutil
import subprocess
import sys
from textwrap import dedent
import mock

@ -5,7 +5,6 @@ import json
import copy
import os
import sys
from tests import helpers
from pungi import checks

@ -3,7 +3,6 @@
import mock
import os
import sys
from kobo.shortcuts import force_list

@ -5,7 +5,6 @@ import json
import mock
import os
import sys
from tests import helpers
from pungi.phases import ostree

@ -3,7 +3,6 @@
import json
import os
import sys
import mock
import six

@ -3,7 +3,6 @@
import mock
import os
import sys
from tests import helpers
from pungi.ostree import utils

@ -2,7 +2,6 @@
import mock
import os
import sys
try:
import unittest2 as unittest

@ -2,8 +2,6 @@
import unittest
import os
import sys
from pungi.pathmatch import PathMatch, head_tail_split

@ -6,9 +6,7 @@ try:
import unittest2 as unittest
except ImportError:
import unittest
import os
import random
import sys
import time
from pungi.phases import weaver

@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
import os
import sys
import mock
import six

@ -3,7 +3,6 @@
import mock
import os
import six
import sys
try:
import unittest2 as unittest

@ -5,7 +5,6 @@ import mock
import os
import re
import six
import sys
try:
import unittest2 as unittest

@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
import os
import sys
import six
from pungi.wrappers import repoclosure as rc

@ -2,7 +2,6 @@
import mock
import os
import sys
from pungi.runroot import Runroot
from tests import helpers

@ -10,7 +10,6 @@ import shutil
import tempfile
import os
import sys
import six
from pungi.wrappers import scm

@ -9,20 +9,19 @@ except ImportError:
import mock
import os
import six
import sys
import pungi.phases.test as test_phase
from tests.helpers import DummyCompose, PungiTestCase, touch, mk_boom
try:
import dnf
import dnf # noqa: F401
HAS_DNF = True
except ImportError:
HAS_DNF = False
try:
import yum
import yum # noqa: F401
HAS_YUM = True
except ImportError:

@ -3,7 +3,6 @@
import mock
import os
import shutil
import sys
import six
from six.moves.configparser import SafeConfigParser

@ -3,7 +3,6 @@
import argparse
import mock
import os
import sys
try:
import unittest2 as unittest

@ -4,8 +4,6 @@ try:
import unittest2 as unittest
except ImportError:
import unittest
import os
import sys
from six.moves import cStringIO
from pungi.wrappers.variants import VariantsXmlParser

Loading…
Cancel
Save