python formatting. Run autopep8 and replace tabs with spaces.

autopep8 -i --max-line-length=160 *.py
    sed -i 's/\t/    /' *.py

[ci skip]
This commit is contained in:
Daniel Marjamäki 2018-02-13 09:26:11 +01:00
parent f624905534
commit fe1ae7240a
3 changed files with 7 additions and 6 deletions

View File

@ -3,6 +3,7 @@ import os
import sys
import re
def readdate(data):
if data[:5] == 'DATE ':
datepos = 0
@ -30,6 +31,7 @@ def readdate(data):
return None
datepos += 1
def summaryHtml(style, font, text1, text2, text3):
font1 = ''
font2 = ''

View File

@ -4,6 +4,7 @@ import sys
TRACDB = 'trac.db'
def readdb():
global TRACDB
cmds = ['sqlite3', TRACDB, 'SELECT id,keywords FROM ticket WHERE status<>"closed";']
@ -21,7 +22,7 @@ def readdb():
continue
if kw not in ret:
ret[kw] = []
ret[kw].append(nr);
ret[kw].append(nr)
return ret
for arg in sys.argv[1:]:
@ -35,5 +36,3 @@ for kw in sorted(data.keys()):
for ticket in data[kw]:
out = out + ' ' + ticket
print(out)