File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1414# that promote freedom, but obviously am giving up any rights
1515# to compel such.
1616#
17- #$Id: indexer.py,v 1.15 2003-01-12 23:53:19 richard Exp $
17+ #$Id: indexer.py,v 1.16 2003-01-14 03:56:44 richard Exp $
1818'''
1919This module provides an indexer class, RoundupIndexer, that stores text
2020indices in a roundup instance. This class makes searching the content of
@@ -214,9 +214,9 @@ def find(self, wordlist):
214214 # word outside the bounds of what we index - ignore
215215 continue
216216 word = word .upper ()
217- entry = self .words [ word ] # For each word, get index
218- entries [word ] = entry # of matching files
219- if not entry : # Nothing for this one word (fail)
217+ entry = self .words . get ( word ) # For each word, get index
218+ entries [word ] = entry # of matching files
219+ if not entry : # Nothing for this one word (fail)
220220 return {}
221221 if hits is None :
222222 hits = {}
You can’t perform that action at this time.
0 commit comments