diff --git a/dak/add_user.py b/dak/add_user.py
index c3dfc27dd522782c1c6c0fd0bde6129e614b3b3d..bd02f2200a8d1be7d8337081fe5188fc0e8fa4b5 100755
--- a/dak/add_user.py
+++ b/dak/add_user.py
@@ -100,7 +100,7 @@ def main():
name = n.group(1)
# Look for all email addresses on the key.
- emails=[]
+ emails = []
for line in output.split('\n'):
e = re_user_mails.search(line)
if not e:
@@ -134,7 +134,7 @@ def main():
# Should we send mail to the newly added user?
if Cnf.find_b("Add-User::SendEmail"):
- mail = name + "<" + emails[0] +">"
+ mail = name + "<" + emails[0] + ">"
Subst = {}
Subst["__NEW_MAINTAINER__"] = mail
Subst["__UID__"] = uid
diff --git a/dak/bts_categorize.py b/dak/bts_categorize.py
index 96ab402b83144264ade503e6b74c7fcc07d86204..5b7bf01327189092c6d21349ccecd4615b34630c 100755
--- a/dak/bts_categorize.py
+++ b/dak/bts_categorize.py
@@ -100,7 +100,7 @@ class BugClassifier(object):
tagged_bugs_ftp += tagged_bugs[tags]
return [bug for bug in bts.get_status(bts.get_bugs("package", "ftp.debian.org")) \
- if bug.pending=='pending' and bug.bug_num not in tagged_bugs_ftp]
+ if bug.pending == 'pending' and bug.bug_num not in tagged_bugs_ftp]
def classify_bug(self, bug):
"""
@@ -173,13 +173,13 @@ def main():
sys.exit(0)
if Options["Quiet"]:
- level=logging.ERROR
+ level = logging.ERROR
elif Options["Verbose"]:
- level=logging.DEBUG
+ level = logging.DEBUG
else:
- level=logging.INFO
+ level = logging.INFO
logging.basicConfig(level=level,
format='%(asctime)s %(levelname)s %(message)s',
diff --git a/dak/generate_index_diffs.py b/dak/generate_index_diffs.py
index 8257e2a1c2b22938ca21e313284d037b839c2c90..e84a3d5b641d2824721cb08e4506e8cccf00b29d 100755
--- a/dak/generate_index_diffs.py
+++ b/dak/generate_index_diffs.py
@@ -186,7 +186,7 @@ class Updates:
x = read_hashs(2,2,f,self)
continue
- if l[0] == "Canonical-Name:" or l[0]=="Canonical-Path:":
+ if l[0] == "Canonical-Name:" or l[0] == "Canonical-Path:":
self.can_path = l[1]
if l[0] == "SHA1-Current:" and len(l) == 3:
@@ -318,7 +318,7 @@ def genchanges(Options, outdir, oldfile, origfile, maxdiffs=56):
# print "info: old file " + oldfile + " changed! %s %s => %s %s" % (upd.filesizesha1 + oldsizesha1)
if "CanonicalPath" in Options:
- upd.can_path=Options["CanonicalPath"]
+ upd.can_path = Options["CanonicalPath"]
if os.path.exists(newfile):
os.unlink(newfile)
@@ -427,7 +427,7 @@ def main():
cwd = os.getcwd()
for component in components:
#print "DEBUG: Working on %s" % (component)
- workpath=os.path.join(tree, component, "i18n")
+ workpath = os.path.join(tree, component, "i18n")
if os.path.isdir(workpath):
os.chdir(workpath)
for dirpath, dirnames, filenames in os.walk(".", followlinks=True, topdown=True):
@@ -436,9 +436,9 @@ def main():
#print "EXCLUDING %s" % (entry)
continue
(fname, fext) = os.path.splitext(entry)
- processfile=os.path.join(workpath, fname)
+ processfile = os.path.join(workpath, fname)
#print "Working: %s" % (processfile)
- storename="%s/%s_%s_%s" % (Options["TempDir"], suite, component, fname)
+ storename = "%s/%s_%s_%s" % (Options["TempDir"], suite, component, fname)
#print "Storefile: %s" % (storename)
genchanges(Options, processfile + ".diff", storename, processfile, maxdiffs)
os.chdir(cwd)
diff --git a/dak/generate_releases.py b/dak/generate_releases.py
index f977fe38dbb24d20c1f8363fc305e440b7584a4f..9c8c78afe0d4d32c32884209482d3c39cf26ae36 100755
--- a/dak/generate_releases.py
+++ b/dak/generate_releases.py
@@ -322,7 +322,7 @@ class ReleaseWriter(object):
out.write("Date: %s\n" % (time.strftime("%a, %d %b %Y %H:%M:%S UTC", time.gmtime(time.time()))))
if suite.validtime:
- validtime=float(suite.validtime)
+ validtime = float(suite.validtime)
out.write("Valid-Until: %s\n" % (time.strftime("%a, %d %b %Y %H:%M:%S UTC", time.gmtime(time.time()+validtime))))
for key, dbfield in boolattrs:
@@ -493,7 +493,7 @@ def main():
query = query.join(Suite.archive).filter(Archive.archive_name.in_(archive_names))
suites = query.all()
- broken=[]
+ broken = []
for s in suites:
# Setup a multiprocessing Pool. As many workers as we have CPU cores.
diff --git a/dak/new_security_install.py b/dak/new_security_install.py
index be3984b169803ddab6a9ac4ee892648a339dd0cd..483fb20dbc25360944bfc3b56866f71ebd70cc31 100755
--- a/dak/new_security_install.py
+++ b/dak/new_security_install.py
@@ -145,11 +145,11 @@ def main():
if Options['Help']:
usage()
- changesfiles={}
+ changesfiles = {}
for a in changes_files:
if not a.endswith(".changes"):
utils.fubar("not a .changes file: %s" % (a))
- changesfiles[a]=1
+ changesfiles[a] = 1
changes = changesfiles.keys()
username = utils.getusername()
@@ -176,16 +176,16 @@ def main():
# Yes, we could do this inside do_Approve too. But this way we see who exactly
# called it (ownership of the file)
- acceptfiles={}
+ acceptfiles = {}
for change in changes:
- dbchange=get_dbchange(os.path.basename(change), session)
+ dbchange = get_dbchange(os.path.basename(change), session)
# strip epoch from version
- version=dbchange.version
- version=version[(version.find(':')+1):]
+ version = dbchange.version
+ version = version[(version.find(':')+1):]
# strip possible version from source (binNMUs)
source = dbchange.source.split(None, 1)[0]
- acceptfilename="%s/COMMENTS/ACCEPT.%s_%s" % (os.path.dirname(os.path.abspath(changes[0])), source, version)
- acceptfiles[acceptfilename]=1
+ acceptfilename = "%s/COMMENTS/ACCEPT.%s_%s" % (os.path.dirname(os.path.abspath(changes[0])), source, version)
+ acceptfiles[acceptfilename] = 1
print "Would create %s now and then go on to accept this package, if you allow me to." % (acceptfiles.keys())
if Options["No-Action"]:
diff --git a/dak/queue_report.py b/dak/queue_report.py
index eeba2396253ab09074600b3d8ef1a0b67e48c811..09415ea85aa1676468237556d3775520775fe50d 100755
--- a/dak/queue_report.py
+++ b/dak/queue_report.py
@@ -342,7 +342,7 @@ def table_row(source, version, arch, last_mod, maint, distribution, closes, fing
for close in closes:
print "#%s
" % (utils.html_escape(close), utils.html_escape(close))
print ""
- row_number+=1
+ row_number += 1
############################################################
@@ -447,7 +447,7 @@ def process_queue(queue, log, rrd_dir):
fingerprint = ""
changeby = {}
changedby = ""
- sponsor= ""
+ sponsor = ""
filename = i[1]["list"][0].changes.changesname
last_modified = time.time()-i[1]["oldest"]
source = i[1]["list"][0].changes.source
diff --git a/dak/show_deferred.py b/dak/show_deferred.py
index b9d69c54365468abb5f296c18e11b8ced8503131..27cc941cf93665dbfcb223b2c2c96f94a0306e6f 100755
--- a/dak/show_deferred.py
+++ b/dak/show_deferred.py
@@ -114,7 +114,7 @@ def table_row(changesname, delay, changed_by, closes, fingerprint):
res += ('
Timestamp: %s (UTC)
-"""% (time.strftime("%d.%m.%Y / %H:%M:%S", time.gmtime())) +""" % (time.strftime("%d.%m.%Y / %H:%M:%S", time.gmtime())) result += "