summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2012-08-14 14:06:59 -0500
committerSol Jerome <sol.jerome@gmail.com>2012-08-14 14:06:59 -0500
commitb5524d7f6a0ea5b01f058b67c17e5e07939af662 (patch)
treed2798d53d0abc0dd748c4e85f91fce2f8497a72d /src/lib/Bcfg2
parentaef902e8e94c85c48ba1f4df42cbdaabfd409d79 (diff)
downloadbcfg2-b5524d7f6a0ea5b01f058b67c17e5e07939af662.tar.gz
bcfg2-b5524d7f6a0ea5b01f058b67c17e5e07939af662.tar.bz2
bcfg2-b5524d7f6a0ea5b01f058b67c17e5e07939af662.zip
PY3K/PEP8 fixes
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src/lib/Bcfg2')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Packages/Yum.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py b/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py
index ce1d9886f..24187d7a9 100644
--- a/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py
+++ b/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py
@@ -1,14 +1,11 @@
import os
import re
import sys
-import time
import copy
-import glob
import socket
import logging
-import threading
import lxml.etree
-from subprocess import Popen, PIPE, STDOUT
+from subprocess import Popen, PIPE
import Bcfg2.Server.Plugin
from Bcfg2.Bcfg2Py3k import StringIO, cPickle, HTTPError, URLError, \
ConfigParser, file
@@ -434,7 +431,7 @@ class YumCollection(Collection):
default="auto"))
if attrs['version'] == 'any':
return attrs
-
+
if pkgtup[1]:
attrs['arch'] = pkgtup[1]
if pkgtup[2]:
@@ -621,7 +618,6 @@ class YumSource(Source):
self.filemap, self.url_map), cache, 2)
cache.close()
-
def load_state(self):
if not self.use_yum:
data = file(self.cachefile)
@@ -636,7 +632,7 @@ class YumSource(Source):
usettings = [{'version':self.version, 'component':comp,
'arch':arch}
for comp in self.components]
- else: # rawurl given
+ else: # rawurl given
usettings = [{'version':self.version, 'component':None,
'arch':arch}]