Skip to content

Commit 0859406

Browse files
author
Richard Jones
committed
.get() was intentional after all
1 parent d7f2ebe commit 0859406

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

roundup/indexer.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
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
'''
1919
This module provides an indexer class, RoundupIndexer, that stores text
2020
indices 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 = {}

0 commit comments

Comments
 (0)