pylint fix: remove unused imports

This commit is contained in:
Alexander Todorov 2017-10-12 14:14:20 +03:00 committed by Brian C. Lane
parent 54cdb5dbf5
commit 15de3e1687
10 changed files with 13 additions and 22 deletions

View File

@ -1,7 +1,6 @@
#!/usr/bin/python
from distutils.core import setup
from glob import glob
import os
import sys

View File

@ -19,7 +19,6 @@
import glob
import optparse
import os
import shutil
import sys
import rpm

View File

@ -33,7 +33,7 @@ import locale
from subprocess import CalledProcessError
import selinux
from base import BaseLoraxClass, DataHolder
from .base import BaseLoraxClass, DataHolder
import output
import yum

View File

@ -15,7 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
from flask import Flask, jsonify
from flask import Flask
from pylorax.api import crossdomain
from pylorax.api.v0 import v0_api

View File

@ -18,13 +18,10 @@ import logging
log = logging.getLogger("pylorax")
import os
import sys
import tempfile
import subprocess
import threading
import shutil
import hashlib
import re
import glob
# Use Mako templates for appliance builder descriptions
@ -32,15 +29,14 @@ from mako.template import Template
from mako.exceptions import text_error_template
# Use the Lorax treebuilder branch for iso creation
from pylorax import ArchData, vernum
from pylorax import ArchData
from pylorax.base import DataHolder
from pylorax.treebuilder import TreeBuilder, RuntimeBuilder, udev_escape
from pylorax.treebuilder import TreeBuilder, RuntimeBuilder
from pylorax.treebuilder import findkernels
from pylorax.sysutils import joinpaths, remove
from pylorax.imgutils import mount, umount, Mount
from pylorax.imgutils import mount, umount
from pylorax.imgutils import mksquashfs, mkrootfsimg
from pylorax.imgutils import copytree
from pylorax.executils import execWithRedirect, execWithCapture, runcmd
from pylorax.executils import execWithRedirect, runcmd
from pylorax.installer import InstallError, novirt_install, virt_install
RUNTIME = "images/install.img"

View File

@ -25,13 +25,13 @@ import tempfile
from time import sleep
import uuid
from pylorax.executils import execWithRedirect, execWithCapture, runcmd
from pylorax.imgutils import get_loop_name, dm_detach, mount, umount, Mount
from pylorax.executils import execWithRedirect, execWithCapture
from pylorax.imgutils import get_loop_name, dm_detach, mount, umount
from pylorax.imgutils import PartitionMount, mksparse, mkext4img, loop_detach
from pylorax.imgutils import mksquashfs, mktar, mkrootfsimg, mkdiskfsimage, mkqcow2
from pylorax.imgutils import mktar, mkdiskfsimage, mkqcow2
from pylorax.logmonitor import LogMonitor
from pylorax.sysutils import joinpaths, remove
from pylorax.treebuilder import TreeBuilder, RuntimeBuilder, udev_escape
from pylorax.sysutils import joinpaths
from pylorax.treebuilder import udev_escape
ROOT_PATH = "/mnt/sysimage/"

View File

@ -30,7 +30,6 @@ import pwd
import grp
import glob
import shutil
import subprocess
from pylorax.executils import runcmd

View File

@ -21,7 +21,7 @@ import logging
logger = logging.getLogger("pylorax.treebuilder")
import os, re
from os.path import basename, isdir
from os.path import basename
from sysutils import joinpaths, remove
from shutil import copytree, copy2

View File

@ -21,7 +21,7 @@
import logging
logger = logging.getLogger("pylorax.yumhelper")
import sys, os, re
import re
import yum, yum.callbacks, yum.rpmtrans
import output

View File

@ -24,9 +24,7 @@ pylorax_log = logging.getLogger("pylorax")
import argparse
import os
import shutil
import sys
import tempfile
from gevent.wsgi import WSGIServer
from pylorax import vernum