Commit 4e0fbd88 authored by Andreas Jung's avatar Andreas Jung

added support for Unicode

parent 97e29828
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
""" """
__version__ = '$Revision: 1.18 $'[11:-2] __version__ = '$Revision: 1.19 $'[11:-2]
import string, re import string, re
...@@ -364,7 +364,8 @@ class TextIndex(PluggableIndex.PluggableIndex, Persistent, ...@@ -364,7 +364,8 @@ class TextIndex(PluggableIndex.PluggableIndex, Persistent,
last = None last = None
# Run through the words and score them # Run through the words and score them
for word in splitter(source):
for word in list(splitter(source)):
if word[0] == '\"': if word[0] == '\"':
last = self._subindex(word[1:-1], wordScores, last, splitter) last = self._subindex(word[1:-1], wordScores, last, splitter)
else: else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment