summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Core.py
diff options
context:
space:
mode:
authorSol Jerome <solj@ices.utexas.edu>2009-10-07 14:46:08 +0000
committerSol Jerome <solj@ices.utexas.edu>2009-10-07 14:46:08 +0000
commiteac52c270b8b3b10e461bc46502b64c5f898bd7d (patch)
tree96da2e78af41305b445de23596b75bf754eedbbc /src/lib/Server/Core.py
parente686d3b69600441e943c2913542e5477af528d87 (diff)
downloadbcfg2-eac52c270b8b3b10e461bc46502b64c5f898bd7d.tar.gz
bcfg2-eac52c270b8b3b10e461bc46502b64c5f898bd7d.tar.bz2
bcfg2-eac52c270b8b3b10e461bc46502b64c5f898bd7d.zip
Pylint/PEP 8 Code cleanups
Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5477 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Core.py')
-rw-r--r--src/lib/Server/Core.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/Server/Core.py b/src/lib/Server/Core.py
index acee2542f..7aa859143 100644
--- a/src/lib/Server/Core.py
+++ b/src/lib/Server/Core.py
@@ -60,7 +60,7 @@ class Core(Component):
if '' in plugins:
plugins.remove('')
-
+
for plugin in plugins:
if not plugin in self.plugins:
self.init_plugins(plugin)
@@ -132,8 +132,8 @@ class Core(Component):
except PluginInitError:
logger.error("Failed to instantiate plugin %s" % (plugin))
except:
- logger.error("Unexpected instantiation failure for plugin %s" %
- (plugin), exc_info=1)
+ logger.error("Unexpected instantiation failure for plugin %s" %
+ (plugin), exc_info=1)
def shutdown(self):
for plugin in self.plugins.values():
@@ -216,9 +216,9 @@ class Core(Component):
gen.HandlesEntry(entry, metadata)]
if len(g2list) == 1:
return g2list[0].HandleEntry(entry, metadata)
- entry.set('failure', 'no matching generator')
+ entry.set('failure', 'no matching generator')
raise PluginExecutionError, (entry.tag, entry.get('name'))
-
+
def BuildConfiguration(self, client):
'''Build Configuration for client'''
start = time.time()
@@ -250,7 +250,7 @@ class Core(Component):
else:
esrcs[key] = entry.get('altsrc', None)
del esrcs
-
+
for astruct in structures:
try:
self.BindStructure(astruct, meta)