From f60002b41083471e0d47c014c33751a180f07e17 Mon Sep 17 00:00:00 2001 From: Adam Stokes Date: Sun, 14 Apr 2013 12:56:57 -0400 Subject: Remove all unused imports in plugins Signed-off-by: Adam Stokes --- sos/plugins/__init__.py | 5 ----- sos/plugins/as7.py | 2 -- sos/plugins/autofs.py | 1 - sos/plugins/cluster.py | 2 +- sos/plugins/ftp.py | 1 - sos/plugins/ipa.py | 1 - sos/plugins/iscsi.py | 2 +- sos/plugins/jboss.py | 3 --- sos/plugins/kdump.py | 1 - sos/plugins/kernel.py | 2 +- sos/plugins/landscape.py | 3 +-- sos/plugins/ldap.py | 1 - sos/plugins/lsbrelease.py | 1 - sos/plugins/mysql.py | 1 - sos/plugins/named.py | 1 - sos/plugins/netdump.py | 1 - sos/plugins/nis.py | 1 - sos/plugins/openswan.py | 1 - sos/plugins/postfix.py | 1 - sos/plugins/postgresql.py | 3 --- sos/plugins/ppp.py | 1 - sos/plugins/process.py | 1 - sos/plugins/pxe.py | 1 - sos/plugins/quagga.py | 1 - sos/plugins/radius.py | 1 - sos/plugins/s390.py | 1 - sos/plugins/sendmail.py | 1 - sos/plugins/smartcard.py | 2 -- sos/plugins/snmp.py | 1 - sos/plugins/soundcard.py | 1 - sos/plugins/squid.py | 1 - sos/plugins/sunrpc.py | 2 +- sos/plugins/systemd.py | 3 +-- sos/plugins/tftpserver.py | 1 - sos/plugins/vmware.py | 1 - sos/plugins/xinetd.py | 1 - sos/plugins/yum.py | 1 - 37 files changed, 6 insertions(+), 49 deletions(-) diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py index b0e3ab3f..cb18ac3b 100644 --- a/sos/plugins/__init__.py +++ b/sos/plugins/__init__.py @@ -26,15 +26,10 @@ from __future__ import with_statement from sos.utilities import sos_get_command_output, import_module, grep, fileobj, tail -from sos import _sos as _ -import inspect import os -import sys -import string import glob import re import traceback -import shutil from stat import * from time import time from itertools import * diff --git a/sos/plugins/as7.py b/sos/plugins/as7.py index 52f71203..38e84bdc 100644 --- a/sos/plugins/as7.py +++ b/sos/plugins/as7.py @@ -1,9 +1,7 @@ import os -import sys import re import zipfile import urllib2 -import tempfile from xml.etree import ElementTree from itertools import chain diff --git a/sos/plugins/autofs.py b/sos/plugins/autofs.py index f88d4f8b..b1d264ba 100644 --- a/sos/plugins/autofs.py +++ b/sos/plugins/autofs.py @@ -15,7 +15,6 @@ ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. from sos.plugins import Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin -import os, re class Autofs(Plugin): """autofs server-related information diff --git a/sos/plugins/cluster.py b/sos/plugins/cluster.py index 07eeb458..e31a295b 100644 --- a/sos/plugins/cluster.py +++ b/sos/plugins/cluster.py @@ -13,7 +13,7 @@ ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. from sos.plugins import Plugin, RedHatPlugin -import os, re +import re from glob import glob class Cluster(Plugin, RedHatPlugin): diff --git a/sos/plugins/ftp.py b/sos/plugins/ftp.py index 7dc4676d..693b8cbd 100644 --- a/sos/plugins/ftp.py +++ b/sos/plugins/ftp.py @@ -13,7 +13,6 @@ ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. from sos.plugins import Plugin, RedHatPlugin -from os.path import exists class ftp(Plugin, RedHatPlugin): """FTP server related information diff --git a/sos/plugins/ipa.py b/sos/plugins/ipa.py index 1adbe162..3bbf71cd 100644 --- a/sos/plugins/ipa.py +++ b/sos/plugins/ipa.py @@ -15,7 +15,6 @@ ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. from sos.plugins import Plugin, RedHatPlugin -from os.path import exists class Ipa(Plugin, RedHatPlugin): """IPA diagnostic information diff --git a/sos/plugins/iscsi.py b/sos/plugins/iscsi.py index 22e37bd7..2a49ee4c 100644 --- a/sos/plugins/iscsi.py +++ b/sos/plugins/iscsi.py @@ -13,7 +13,7 @@ ## along with this program; if not, write to the Free Software ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -from sos.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin +from sos.plugins import Plugin, RedHatPlugin class Iscsi(Plugin): """iscsi-initiator related information diff --git a/sos/plugins/jboss.py b/sos/plugins/jboss.py index f36ba1d0..528791ed 100644 --- a/sos/plugins/jboss.py +++ b/sos/plugins/jboss.py @@ -1,11 +1,8 @@ import os import zipfile import platform -import fnmatch import shlex import subprocess -import string -import grp, pwd from sos.plugins import Plugin, RedHatPlugin from sos.utilities import DirTree, find diff --git a/sos/plugins/kdump.py b/sos/plugins/kdump.py index 6cd7e89d..ebe17ede 100644 --- a/sos/plugins/kdump.py +++ b/sos/plugins/kdump.py @@ -13,7 +13,6 @@ ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. from sos.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin -from os.path import exists class kdump(Plugin): """Kdump related information diff --git a/sos/plugins/kernel.py b/sos/plugins/kernel.py index eeaf7514..43e2982c 100644 --- a/sos/plugins/kernel.py +++ b/sos/plugins/kernel.py @@ -13,7 +13,7 @@ ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. from sos.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin -import os, re +import os class kernel(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): """kernel related information diff --git a/sos/plugins/landscape.py b/sos/plugins/landscape.py index f544ebb7..c31dea70 100644 --- a/sos/plugins/landscape.py +++ b/sos/plugins/landscape.py @@ -13,7 +13,6 @@ ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. from sos.plugins import Plugin, UbuntuPlugin -import os class Landscape(Plugin, UbuntuPlugin): """ @@ -69,4 +68,4 @@ class Landscape(Plugin, UbuntuPlugin): r"registration_password[***]" ) - \ No newline at end of file + diff --git a/sos/plugins/ldap.py b/sos/plugins/ldap.py index dff5d625..211c1429 100644 --- a/sos/plugins/ldap.py +++ b/sos/plugins/ldap.py @@ -13,7 +13,6 @@ ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. from sos.plugins import Plugin, RedHatPlugin -import os class ldap(Plugin, RedHatPlugin): """LDAP related information diff --git a/sos/plugins/lsbrelease.py b/sos/plugins/lsbrelease.py index eee68e16..aa3b2888 100644 --- a/sos/plugins/lsbrelease.py +++ b/sos/plugins/lsbrelease.py @@ -14,7 +14,6 @@ from sos.plugins import Plugin, RedHatPlugin -import os class lsbrelease(Plugin, RedHatPlugin): """Linux Standard Base information diff --git a/sos/plugins/mysql.py b/sos/plugins/mysql.py index 1437c162..3a3fdbdd 100644 --- a/sos/plugins/mysql.py +++ b/sos/plugins/mysql.py @@ -13,7 +13,6 @@ ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. from sos.plugins import Plugin, RedHatPlugin -from os.path import exists class mysql(Plugin, RedHatPlugin): """MySQL related information diff --git a/sos/plugins/named.py b/sos/plugins/named.py index 812e20da..99f950f4 100644 --- a/sos/plugins/named.py +++ b/sos/plugins/named.py @@ -13,7 +13,6 @@ ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. from sos.plugins import Plugin, RedHatPlugin -import commands from os.path import normpath, join, exists class named(Plugin, RedHatPlugin): diff --git a/sos/plugins/netdump.py b/sos/plugins/netdump.py index 235dd5f7..964e14e8 100644 --- a/sos/plugins/netdump.py +++ b/sos/plugins/netdump.py @@ -13,7 +13,6 @@ ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. from sos.plugins import Plugin, RedHatPlugin -from os.path import exists class netdump(Plugin, RedHatPlugin): """Netdump Configuration Information diff --git a/sos/plugins/nis.py b/sos/plugins/nis.py index 4f4d6258..573581e8 100644 --- a/sos/plugins/nis.py +++ b/sos/plugins/nis.py @@ -16,7 +16,6 @@ ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. from sos.plugins import Plugin, RedHatPlugin -import os class nis(Plugin, RedHatPlugin): """NIS related information diff --git a/sos/plugins/openswan.py b/sos/plugins/openswan.py index d57a8db6..2c4a1c01 100644 --- a/sos/plugins/openswan.py +++ b/sos/plugins/openswan.py @@ -15,7 +15,6 @@ ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. from sos.plugins import Plugin, RedHatPlugin -from os.path import exists class openswan(Plugin, RedHatPlugin): """ipsec related information diff --git a/sos/plugins/postfix.py b/sos/plugins/postfix.py index d2c3c8fc..87857553 100644 --- a/sos/plugins/postfix.py +++ b/sos/plugins/postfix.py @@ -13,7 +13,6 @@ ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. from sos.plugins import Plugin, RedHatPlugin -from os.path import exists class postfix(Plugin, RedHatPlugin): """mail server related information diff --git a/sos/plugins/postgresql.py b/sos/plugins/postgresql.py index 1ae269fb..ccd75727 100644 --- a/sos/plugins/postgresql.py +++ b/sos/plugins/postgresql.py @@ -1,7 +1,4 @@ import os -import fnmatch -import shlex -import subprocess import tempfile from sos.plugins import Plugin, RedHatPlugin diff --git a/sos/plugins/ppp.py b/sos/plugins/ppp.py index 207071c5..76e44046 100644 --- a/sos/plugins/ppp.py +++ b/sos/plugins/ppp.py @@ -15,7 +15,6 @@ ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. from sos.plugins import Plugin, RedHatPlugin -from os.path import exists class ppp(Plugin, RedHatPlugin): """ppp, wvdial and rp-pppoe related information diff --git a/sos/plugins/process.py b/sos/plugins/process.py index 83e8f588..bfb0007f 100644 --- a/sos/plugins/process.py +++ b/sos/plugins/process.py @@ -13,7 +13,6 @@ ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. from sos.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin -import time import os class process(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): diff --git a/sos/plugins/pxe.py b/sos/plugins/pxe.py index 082db155..08810c22 100644 --- a/sos/plugins/pxe.py +++ b/sos/plugins/pxe.py @@ -13,7 +13,6 @@ ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. from sos.plugins import Plugin, RedHatPlugin -from os.path import exists class pxe(Plugin, RedHatPlugin): """PXE related information diff --git a/sos/plugins/quagga.py b/sos/plugins/quagga.py index 28ba983f..703b4a54 100644 --- a/sos/plugins/quagga.py +++ b/sos/plugins/quagga.py @@ -15,7 +15,6 @@ ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. from sos.plugins import Plugin, RedHatPlugin -from os.path import exists class quagga(Plugin, RedHatPlugin): """quagga related information diff --git a/sos/plugins/radius.py b/sos/plugins/radius.py index 972b179c..e814526e 100644 --- a/sos/plugins/radius.py +++ b/sos/plugins/radius.py @@ -15,7 +15,6 @@ ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. from sos.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin -from os.path import exists class radius(Plugin): """radius related information diff --git a/sos/plugins/s390.py b/sos/plugins/s390.py index 26698ebc..82164a4d 100644 --- a/sos/plugins/s390.py +++ b/sos/plugins/s390.py @@ -14,7 +14,6 @@ ## along with this program; if not, write to the Free Software ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -import os from sos.plugins import Plugin, RedHatPlugin class s390(Plugin, RedHatPlugin): diff --git a/sos/plugins/sendmail.py b/sos/plugins/sendmail.py index 1b52a6af..61315a27 100644 --- a/sos/plugins/sendmail.py +++ b/sos/plugins/sendmail.py @@ -15,7 +15,6 @@ ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. from sos.plugins import Plugin, RedHatPlugin -from os.path import exists class sendmail(Plugin, RedHatPlugin): """sendmail information diff --git a/sos/plugins/smartcard.py b/sos/plugins/smartcard.py index 6975b0aa..969aa611 100644 --- a/sos/plugins/smartcard.py +++ b/sos/plugins/smartcard.py @@ -15,8 +15,6 @@ ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. from sos.plugins import Plugin, RedHatPlugin -import os -from time import time class smartcard(Plugin, RedHatPlugin): """Smart Card related information diff --git a/sos/plugins/snmp.py b/sos/plugins/snmp.py index 63aac8e6..ec438dfb 100644 --- a/sos/plugins/snmp.py +++ b/sos/plugins/snmp.py @@ -15,7 +15,6 @@ ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. from sos.plugins import Plugin, RedHatPlugin -from os.path import exists class snmp(Plugin, RedHatPlugin): """snmp related information diff --git a/sos/plugins/soundcard.py b/sos/plugins/soundcard.py index 0a01499c..8c58f35f 100644 --- a/sos/plugins/soundcard.py +++ b/sos/plugins/soundcard.py @@ -13,7 +13,6 @@ ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. from sos.plugins import Plugin, RedHatPlugin -import os class soundcard(Plugin, RedHatPlugin): """ Sound card information diff --git a/sos/plugins/squid.py b/sos/plugins/squid.py index a83c45a1..dae5759f 100644 --- a/sos/plugins/squid.py +++ b/sos/plugins/squid.py @@ -13,7 +13,6 @@ ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. from sos.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin -import os class squid(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): """squid related information diff --git a/sos/plugins/sunrpc.py b/sos/plugins/sunrpc.py index 12277513..dff6ed80 100644 --- a/sos/plugins/sunrpc.py +++ b/sos/plugins/sunrpc.py @@ -14,7 +14,7 @@ ## along with this program; if not, write to the Free Software ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -from sos.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin +from sos.plugins import Plugin, RedHatPlugin class sunrpc(Plugin): """Sun RPC related information diff --git a/sos/plugins/systemd.py b/sos/plugins/systemd.py index 84a3e759..046fb227 100644 --- a/sos/plugins/systemd.py +++ b/sos/plugins/systemd.py @@ -14,8 +14,7 @@ ## along with this program; if not, write to the Free Software ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -from sos.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin -import os +from sos.plugins import Plugin, RedHatPlugin class systemd(Plugin, RedHatPlugin): """ Information on systemd and related subsystems diff --git a/sos/plugins/tftpserver.py b/sos/plugins/tftpserver.py index 29324e42..4a4018f4 100644 --- a/sos/plugins/tftpserver.py +++ b/sos/plugins/tftpserver.py @@ -15,7 +15,6 @@ ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. from sos.plugins import Plugin, RedHatPlugin -from os.path import exists class tftpserver(Plugin, RedHatPlugin): """tftpserver related information diff --git a/sos/plugins/vmware.py b/sos/plugins/vmware.py index 7e102c73..d7d39f82 100644 --- a/sos/plugins/vmware.py +++ b/sos/plugins/vmware.py @@ -13,7 +13,6 @@ ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. from sos.plugins import Plugin, RedHatPlugin -from os.path import exists class vmware(Plugin, RedHatPlugin): """VMWare related information diff --git a/sos/plugins/xinetd.py b/sos/plugins/xinetd.py index 0a8833e8..8c3945e0 100644 --- a/sos/plugins/xinetd.py +++ b/sos/plugins/xinetd.py @@ -15,7 +15,6 @@ ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. from sos.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin -import os class Xinetd(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): """xinetd information diff --git a/sos/plugins/yum.py b/sos/plugins/yum.py index d691c43c..18519df3 100644 --- a/sos/plugins/yum.py +++ b/sos/plugins/yum.py @@ -13,7 +13,6 @@ ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. from sos.plugins import Plugin, RedHatPlugin -import os class Yum(Plugin, RedHatPlugin): """yum information -- cgit