[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TextIndex - GlobbingLexicon.py:1.9.2.2 Lexicon.py:1.5.2.1
Andreas Jung
andreas@digicool.com
Wed, 9 Jan 2002 11:40:49 -0500
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TextIndex
In directory cvs.zope.org:/tmp/cvs-serv27657
Modified Files:
Tag: Zope-2_5-branch
GlobbingLexicon.py Lexicon.py
Log Message:
Collector #126: fixed backward compatibilty issue
=== Zope/lib/python/Products/PluginIndexes/TextIndex/GlobbingLexicon.py 1.9.2.1 => 1.9.2.2 ===
## sense in stemming a globbing lexicon.
- return self.SplitterFunc(astring,None,encoding)
+ try:
+ return self.SplitterFunc(astring,None,encoding)
+ except:
+ return self.SplitterFunc(astring,None)
def createRegex(self, pat):
=== Zope/lib/python/Products/PluginIndexes/TextIndex/Lexicon.py 1.5 => 1.5.2.1 ===
if words is None:
words = self.stop_syn
- return self.SplitterFunc(astring, words, encoding)
+ try:
+ return self.SplitterFunc(astring, words, encoding)
+ except:
+ return self.SplitterFunc(astring, words)
def query_hook(self, q):