tools/trac-keywords.py: dont include empty keyword

This commit is contained in:
Daniel Marjamäki 2018-01-01 23:08:58 +01:00
parent 2ad8ed0931
commit d3f0f7ff12
1 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,8 @@ def readdb():
continue continue
nr = line[:pos1] nr = line[:pos1]
for kw in line[pos1+1:].split(' '): for kw in line[pos1+1:].split(' '):
if kw == '':
continue
if kw not in ret: if kw not in ret:
ret[kw] = [] ret[kw] = []
ret[kw].append(nr); ret[kw].append(nr);