Skip to content

Commit

Permalink
client: Removing more 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 20, 2012
1 parent faf5bdc commit 1a2c871
Show file tree
Hide file tree
Showing 15 changed files with 13 additions and 19 deletions.
1 change: 0 additions & 1 deletion client/deps/systemtap/systemtap.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/python

import os
import shutil
from autotest.client import utils

version = 1
Expand Down
2 changes: 0 additions & 2 deletions client/net/net_tc.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,11 @@ def get_name(self):
"""

import commands, os, re
try:
import autotest.common as common
except ImportError:
import common
from autotest.client.shared import error
from autotest.client.net import net_utils

# TODO (chavey) clean up those global here and new_handle()
handle_counter = 0
Expand Down
4 changes: 1 addition & 3 deletions client/net/net_tc_unittest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@

# TODO(chavey) complete all the unit test in this file

import unittest, os, socket, time, sys
import unittest, os
try:
import autotest.common as common
except ImportError:
import common
from autotest.client import utils
from autotest.client.net import net_tc, net_utils, net_utils_mock
from autotest.client.shared.test_utils import mock
from autotest.client.shared import error

class TestNetUtils(unittest.TestCase):
def setUp(self):
Expand Down
2 changes: 1 addition & 1 deletion client/net/net_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This library is to release in the public repository.
"""

import commands, os, re, socket, sys, time, struct
import os, re, socket, time, struct
from autotest.client.shared import error
from autotest.client import utils as client_utils
import utils
Expand Down
2 changes: 1 addition & 1 deletion client/profilers/cmdprofile/cmdprofile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
few seconds (by default the interval is 60 secs)
"""

import time, os, subprocess
import time, os
from autotest.client import profiler
from autotest.client.shared import utils, error

Expand Down
2 changes: 1 addition & 1 deletion client/profilers/cpistat/cpistat.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Defaults options:
job.profilers.add('cpistat', interval=1)
"""
import time, os, subprocess
import os, subprocess
from autotest.client import profiler

class cpistat(profiler.profiler):
Expand Down
2 changes: 1 addition & 1 deletion client/profilers/kvm_modload/kvm_modload.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
author: [email protected]
"""

import os, subprocess
import os
from autotest.client import kvm_control, profiler, utils


Expand Down
2 changes: 1 addition & 1 deletion client/profilers/kvm_stat/kvm_stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@copyright: Red Hat 2010
@author: Lucas Meneghel Rodrigues ([email protected])
"""
import time, os, subprocess, commands, logging
import os, subprocess, logging
from autotest.client import utils, profiler, os_dep
from autotest.client.shared import error

Expand Down
3 changes: 1 addition & 2 deletions client/profilers/lttng/lttng.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@
localmachine$ lttv-gui -t /home/tmp/lttng &
"""

import os, shutil, time
import os, time
from autotest.client import utils, profiler
from autotest.client.shared import error

class lttng(profiler.profiler):
version = 1
Expand Down
2 changes: 1 addition & 1 deletion client/profilers/mpstat/mpstat.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Sets up a subprocess to run mpstat on a specified interval, default 1 second
"""
import time, os, subprocess
import os, subprocess
from autotest.client import profiler


Expand Down
2 changes: 1 addition & 1 deletion client/profilers/oprofile/oprofile.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
More Info: http://oprofile.sourceforge.net/
Will need some libaries to compile. Do 'apt-get build-dep oprofile'
"""
import os, shutil, time
import os, time
from autotest.client import utils, profiler
from autotest.client.shared import error
import logging
Expand Down
2 changes: 1 addition & 1 deletion client/profilers/perf/perf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@see: http://lwn.net/Articles/310260/
"""

import time, os, stat, subprocess, signal
import os, stat, subprocess, signal
import logging
from autotest.client import profiler, os_dep, utils

Expand Down
2 changes: 1 addition & 1 deletion client/profilers/sar/sar.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Default options:
sar -A -f
"""
import os, shutil, subprocess, time
import os, subprocess, time
from autotest.client import utils, profiler, os_dep


Expand Down
2 changes: 1 addition & 1 deletion client/profilers/vmstat/vmstat.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Defaults options:
job.profilers.add('vmstat', interval=1)
"""
import time, os, subprocess
import os, subprocess
from autotest.client import profiler


Expand Down
2 changes: 1 addition & 1 deletion client/shared/hosts/base_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
[email protected] (Ryan Stutsman)
"""

import cPickle, cStringIO, logging, os, re, time
import cPickle, cStringIO, logging, os, re

from autotest.client.shared import global_config, error, utils
from autotest.client.shared import host_protections
Expand Down

0 comments on commit 1a2c871

Please sign in to comment.