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 #!/usr/bin/python
from distutils.core import setup from distutils.core import setup
from glob import glob
import os import os
import sys import sys

View File

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

View File

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

View File

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

View File

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

View File

@ -25,13 +25,13 @@ import tempfile
from time import sleep from time import sleep
import uuid import uuid
from pylorax.executils import execWithRedirect, execWithCapture, runcmd from pylorax.executils import execWithRedirect, execWithCapture
from pylorax.imgutils import get_loop_name, dm_detach, mount, umount, Mount from pylorax.imgutils import get_loop_name, dm_detach, mount, umount
from pylorax.imgutils import PartitionMount, mksparse, mkext4img, loop_detach 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.logmonitor import LogMonitor
from pylorax.sysutils import joinpaths, remove from pylorax.sysutils import joinpaths
from pylorax.treebuilder import TreeBuilder, RuntimeBuilder, udev_escape from pylorax.treebuilder import udev_escape
ROOT_PATH = "/mnt/sysimage/" ROOT_PATH = "/mnt/sysimage/"

View File

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

View File

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

View File

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

View File

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