daca2: autopep8 formatting

This commit is contained in:
Daniel Marjamäki 2013-10-13 10:51:18 +02:00
parent 9e12bdf9cb
commit a7e925283a
1 changed files with 21 additions and 16 deletions

View File

@ -28,6 +28,7 @@ def removeAllExceptResults():
elif filename != 'results.txt': elif filename != 'results.txt':
os.remove(filename) os.remove(filename)
def generateDaca2Report(allfolders): def generateDaca2Report(allfolders):
filename = os.path.expanduser('~/daca2/daca2.html') filename = os.path.expanduser('~/daca2/daca2.html')
f = open(filename, 'wt') f = open(filename, 'wt')
@ -35,11 +36,16 @@ def generateDaca2Report(allfolders):
f.write('<body>\n') f.write('<body>\n')
f.write('<h1>DACA2</h1>\n') f.write('<h1>DACA2</h1>\n')
f.write('<h2>All folders</h2>\n'); f.write('<h2>All folders</h2>\n')
for folder in allfolders: for folder in allfolders:
results = os.path.expanduser('~/daca2/' + folder + '/results.txt') results = os.path.expanduser('~/daca2/' + folder + '/results.txt')
if os.path.isfile(results): if os.path.isfile(results):
f.write('<a href="'+folder+'/results.txt">'+folder+'</a><br>\n') f.write(
'<a href="' +
folder +
'/results.txt">' +
folder +
'</a><br>\n')
else: else:
f.write(folder + '<br>\n') f.write(folder + '<br>\n')
f.write('</body>\n') f.write('</body>\n')
@ -47,7 +53,6 @@ def generateDaca2Report(allfolders):
f.close() f.close()
workdir = os.path.expanduser('~/daca2/') workdir = os.path.expanduser('~/daca2/')
print('~/daca2/suppressions.txt') print('~/daca2/suppressions.txt')