other
This commit is contained in:
parent
e3b4cda2a6
commit
6150d3323d
1 changed files with 5 additions and 1 deletions
|
@ -41,7 +41,11 @@ if __name__ == '__main__':
|
|||
tree = defaultdict(dict)
|
||||
|
||||
for keyword in keywords:
|
||||
parent, child = keyword.split(': ')
|
||||
if ': ' not in keyword:
|
||||
parent = 'other'
|
||||
child = keyword
|
||||
else:
|
||||
parent, child = keyword.split(': ', 1)
|
||||
path = find_path(parent)
|
||||
if path:
|
||||
p = tree
|
||||
|
|
Loading…
Reference in a new issue