Skip to content

Commit

Permalink
Fix MultiSysDict#lookup().
Browse files Browse the repository at this point in the history
  • Loading branch information
ueno committed Sep 5, 2010
1 parent cb9fe79 commit f46e387
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions engine/skk.py
Expand Up @@ -586,10 +586,10 @@ def reload(self):
sysdict.reload()

def lookup(self, midasi, okuri=False):
candidates = list()
for sysdict in self.__instances:
candidate = sysdict.lookup(midasi, okuri)
if candidate:
return candidate
candidates.extend(sysdict.lookup(midasi, okuri))
return candidates

def completer(self, midasi):
return reduce(lambda x, y: x + y,
Expand Down

0 comments on commit f46e387

Please sign in to comment.