Skip to content

Commit

Permalink
server: Prunning unused imports
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas Meneghel Rodrigues <[email protected]>
  • Loading branch information
lmr committed Apr 18, 2012
1 parent d79ac7d commit f7b9247
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion server/autoserv.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
sys.exit(1)

from autotest.server import server_logging_config
from autotest.server import server_job, utils, autoserv_parser
from autotest.server import server_job, autoserv_parser
from autotest.server import autotest_remote
from autotest.client.shared import pidfile, logging_manager

Expand Down
2 changes: 1 addition & 1 deletion server/autoserv_parser.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import os, sys, getopt, optparse
import os, sys, optparse

from autotest.client.shared import host_protections, utils

Expand Down
3 changes: 1 addition & 2 deletions server/autotest_remote.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Copyright 2007 Google Inc. Released under the GPL v2

import re, os, sys, traceback, subprocess, time, pickle, glob, tempfile
import logging, getpass
import re, os, sys, traceback, time, glob, tempfile, logging
from autotest.server import installable_object, prebuild, utils
from autotest.client.shared import base_job, log, error, autotemp
from autotest.client.shared import global_config, packages
Expand Down
2 changes: 1 addition & 1 deletion server/autotest_remote_unittest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import common
from autotest.server import autotest_remote, utils, hosts, server_job, profilers
from autotest.client import sysinfo
from autotest.client.shared import utils as client_utils, packages
from autotest.client.shared import packages
from autotest.client.shared import error
from autotest.client.shared.test_utils import mock

Expand Down
2 changes: 1 addition & 1 deletion server/base_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import that instead
"""

import atexit, os, re, shutil, textwrap, sys, tempfile, types
import atexit, os, re, shutil, sys, tempfile, types

from autotest.client.shared import barrier, utils
from autotest.server import subcommand
Expand Down
2 changes: 1 addition & 1 deletion server/crashcollect.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import os, time, pickle, logging, shutil, gzip
import os, time, logging, shutil, gzip

from autotest.client.shared import global_config
from autotest.server import utils
Expand Down
2 changes: 1 addition & 1 deletion server/deb_kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Kernel: an os kernel
"""

import os, os.path, time
import os
from autotest.client.shared import error
from autotest.server import kernel, utils

Expand Down
2 changes: 1 addition & 1 deletion server/kvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import os

from autotest.client.shared import error
from autotest.server import hypervisor, utils, hosts
from autotest.server import hypervisor, utils


_qemu_ifup_script= """\
Expand Down
2 changes: 1 addition & 1 deletion server/prebuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# Eric Li <[email protected]>

import logging, os, pickle, re, sys
import logging, os
try:
import autotest.common as common
except ImportError:
Expand Down
2 changes: 1 addition & 1 deletion server/rpm_kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[email protected] (Ryan Stutsman)"""


import os, time
import os
from autotest.client.shared import error
from autotest.server import kernel, utils

Expand Down
4 changes: 2 additions & 2 deletions server/server_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
Copyright Martin J. Bligh, Andy Whitcroft 2007
"""

import getpass, os, sys, re, stat, tempfile, time, select, subprocess, platform
import getpass, os, sys, re, tempfile, time, select, platform
import traceback, shutil, warnings, fcntl, pickle, logging, itertools, errno
from autotest.client import sysinfo
from autotest.client.shared import base_job
from autotest.client.shared import error, log, utils, packages
from autotest.client.shared import error, utils, packages
from autotest.client.shared import logging_manager
from autotest.server import test, subcommand, profilers
from autotest.server.hosts import abstract_ssh
Expand Down
1 change: 0 additions & 1 deletion server/server_job_unittest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/python

import tempfile
try:
import autotest.common as common
except ImportError:
Expand Down
2 changes: 1 addition & 1 deletion server/source_kernel_unittest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
except ImportError:
import common
from autotest.client.shared.test_utils import mock
from autotest.server import source_kernel, autotest_remote, hosts
from autotest.server import source_kernel, hosts


class TestSourceKernel(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion server/subcommand.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__author__ = """Copyright Andy Whitcroft, Martin J. Bligh - 2006, 2007"""

import sys, os, subprocess, time, signal, cPickle, logging
import sys, os, time, signal, cPickle, logging

from autotest.client.shared import error, utils

Expand Down

0 comments on commit f7b9247

Please sign in to comment.