mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-30 08:34:16 +01:00
don't assert wordlist length wrong
For some reason the header and dawg data in Spanish wordlist don't agree. Until I fix this, remove the assertion from the (dev-use-only) script that dumps wordlist since it breaks it for other uses.
This commit is contained in:
parent
71575934b8
commit
dfbbf2d480
1 changed files with 3 additions and 1 deletions
|
@ -222,7 +222,9 @@ def process(args):
|
||||||
words = []
|
words = []
|
||||||
if nodes:
|
if nodes:
|
||||||
expandDAWG( nodes, nodeSize, args.DELIM, offset, data, words )
|
expandDAWG( nodes, nodeSize, args.DELIM, offset, data, words )
|
||||||
assert len(words) == nWords
|
if not len(words) == nWords:
|
||||||
|
print("loaded {} words but header claims {}".format(len(words), nWords), file=sys.stderr)
|
||||||
|
# assert len(words) == nWords
|
||||||
if args.DUMP_WORDS:
|
if args.DUMP_WORDS:
|
||||||
for word in words:
|
for word in words:
|
||||||
print(word)
|
print(word)
|
||||||
|
|
Loading…
Add table
Reference in a new issue