[Zope-Checkins] CVS: Zope2 - GlobbingLexicon.py:1.9

chrism@serenade.digicool.com chrism@serenade.digicool.com
Mon, 2 Apr 2001 14:19:47 -0400


Update of /cvs-repository/Zope2/lib/python/SearchIndex
In directory serenade.digicool.com:/home/chrism/sandboxes/TrunkBranch/lib/python/SearchIndex

Modified Files:
	GlobbingLexicon.py 
Log Message:
Fix for "TypeError: expected integer key" (Collector 2121)



--- Updated File GlobbingLexicon.py in package Zope2 --
--- GlobbingLexicon.py	2001/03/27 23:49:13	1.8
+++ GlobbingLexicon.py	2001/04/02 18:19:45	1.9
@@ -231,7 +231,9 @@
                     digrams.append( (pattern[i] + self.eow) )
 
         if not globbing:
-            result =  self._lexicon.get(pattern, ())
+            result =  self._lexicon.get(pattern, None)
+            if result is None:
+                return ()
             return (result, )
         
         ## now get all of the intsets that contain the result digrams