summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSol Jerome <solj@ices.utexas.edu>2009-04-17 01:57:47 +0000
committerSol Jerome <solj@ices.utexas.edu>2009-04-17 01:57:47 +0000
commitbfff630862e73faf07b79c9b4a504086f663485b (patch)
treeee81b53e9c705de0d968a56b19163e3a3554bcaf /src
parentadf769447b329a3afb49a4873da0ffd93b9d3a58 (diff)
downloadbcfg2-bfff630862e73faf07b79c9b4a504086f663485b.tar.gz
bcfg2-bfff630862e73faf07b79c9b4a504086f663485b.tar.bz2
bcfg2-bfff630862e73faf07b79c9b4a504086f663485b.zip
Remove unused imports for pylint
Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5168 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/lib/Client/Tools/APT.py2
-rw-r--r--src/lib/Client/Tools/RPMng.py6
-rw-r--r--src/lib/Options.py6
-rw-r--r--src/lib/Proxy.py11
-rw-r--r--src/lib/Server/Admin/Minestruct.py1
-rw-r--r--src/lib/Server/Hostbase/urls.py1
-rw-r--r--src/lib/Server/Plugins/Editor.py2
-rw-r--r--src/lib/Server/Plugins/Metadata.py6
-rw-r--r--src/lib/Server/Plugins/Snapshots.py6
9 files changed, 26 insertions, 15 deletions
diff --git a/src/lib/Client/Tools/APT.py b/src/lib/Client/Tools/APT.py
index 05d3303b6..d92de503c 100644
--- a/src/lib/Client/Tools/APT.py
+++ b/src/lib/Client/Tools/APT.py
@@ -2,7 +2,7 @@
__revision__ = '$Revision$'
import apt.cache
-import os, re
+import os
import Bcfg2.Client.Tools
class APT(Bcfg2.Client.Tools.Tool):
diff --git a/src/lib/Client/Tools/RPMng.py b/src/lib/Client/Tools/RPMng.py
index e99b467b3..a0d1e8190 100644
--- a/src/lib/Client/Tools/RPMng.py
+++ b/src/lib/Client/Tools/RPMng.py
@@ -2,7 +2,11 @@
__revision__ = '$Revision$'
-import Bcfg2.Client.Tools, rpmtools, os.path, rpm, ConfigParser, sys
+import ConfigParser
+import os.path
+import rpm
+import rpmtools
+import Bcfg2.Client.Tools
try:
set
diff --git a/src/lib/Options.py b/src/lib/Options.py
index c992d17d2..c1c6d9df8 100644
--- a/src/lib/Options.py
+++ b/src/lib/Options.py
@@ -1,7 +1,11 @@
'''Option parsing library for utilities'''
__revision__ = '$Revision$'
-import getopt, os, socket, sys, ConfigParser, Bcfg2.Client.Tools
+import ConfigParser
+import getopt
+import os
+import sys
+import Bcfg2.Client.Tools
def bool_cook(x):
if x:
diff --git a/src/lib/Proxy.py b/src/lib/Proxy.py
index 8275f9a7c..4ddf63fb1 100644
--- a/src/lib/Proxy.py
+++ b/src/lib/Proxy.py
@@ -9,13 +9,16 @@ load_config -- read configuration files
__revision__ = '$Revision: $'
-from ConfigParser import SafeConfigParser, NoSectionError
-import logging, socket, urlparse, time, Bcfg2.tlslite.errors
+import logging
+import socket
+import time
+import urlparse
+import xmlrpclib
+from xmlrpclib import _Method
+import Bcfg2.tlslite.errors
from Bcfg2.tlslite.integration.XMLRPCTransport import XMLRPCTransport
import Bcfg2.tlslite.X509, Bcfg2.tlslite.X509CertChain
import Bcfg2.tlslite.utils.keyfactory
-import xmlrpclib
-from xmlrpclib import _Method
__all__ = ["ComponentProxy", "RetryMethod"]
diff --git a/src/lib/Server/Admin/Minestruct.py b/src/lib/Server/Admin/Minestruct.py
index 743641bc6..d5af2f809 100644
--- a/src/lib/Server/Admin/Minestruct.py
+++ b/src/lib/Server/Admin/Minestruct.py
@@ -1,7 +1,6 @@
'''Minestruct Admin Mode'''
import Bcfg2.Server.Admin
import lxml.etree, sys, getopt
-import sets
class Minestruct(Bcfg2.Server.Admin.StructureMode):
'''Pull extra entries out of statistics'''
diff --git a/src/lib/Server/Hostbase/urls.py b/src/lib/Server/Hostbase/urls.py
index 3bca65cfa..4e45e883c 100644
--- a/src/lib/Server/Hostbase/urls.py
+++ b/src/lib/Server/Hostbase/urls.py
@@ -1,4 +1,3 @@
-import os
from django.conf.urls.defaults import *
urlpatterns = patterns('Bcfg2.Server.Hostbase.hostbase.views',
diff --git a/src/lib/Server/Plugins/Editor.py b/src/lib/Server/Plugins/Editor.py
index 088c8a26e..87ba2a416 100644
--- a/src/lib/Server/Plugins/Editor.py
+++ b/src/lib/Server/Plugins/Editor.py
@@ -1,8 +1,6 @@
import Bcfg2.Server.Plugin
-import fileinput
import re
import lxml.etree
-from getopt import getopt
def linesub(pattern, repl, filestring):
'''Substitutes instances of pattern with repl in filestring'''
diff --git a/src/lib/Server/Plugins/Metadata.py b/src/lib/Server/Plugins/Metadata.py
index 860bb78d2..86d06d820 100644
--- a/src/lib/Server/Plugins/Metadata.py
+++ b/src/lib/Server/Plugins/Metadata.py
@@ -1,7 +1,11 @@
'''This file stores persistent metadata for the Bcfg2 Configuration Repository'''
__revision__ = '$Revision$'
-import lxml.etree, re, socket, time, fcntl, copy
+import copy
+import fcntl
+import lxml.etree
+import socket
+import time
import Bcfg2.Server.Plugin
class MetadataConsistencyError(Exception):
diff --git a/src/lib/Server/Plugins/Snapshots.py b/src/lib/Server/Plugins/Snapshots.py
index 76da48dac..c8d4e31c3 100644
--- a/src/lib/Server/Plugins/Snapshots.py
+++ b/src/lib/Server/Plugins/Snapshots.py
@@ -1,8 +1,8 @@
-import lxml.etree
+#import lxml.etree
import binascii
import difflib
-import sqlalchemy
-import sqlalchemy.orm
+#import sqlalchemy
+#import sqlalchemy.orm
import Bcfg2.Server.Plugin
import Bcfg2.Server.Snapshots
from Bcfg2.Server.Snapshots.model import Snapshot