Commit 052a199f authored by Andreas Jung's avatar Andreas Jung

removed forgotten debug code

parent f907c164
...@@ -91,7 +91,7 @@ undo information so that objects can be unindexed when the old value ...@@ -91,7 +91,7 @@ undo information so that objects can be unindexed when the old value
is no longer known. is no longer known.
""" """
__version__ = '$Revision: 1.7 $'[11:-2] __version__ = '$Revision: 1.8 $'[11:-2]
import string, re import string, re
...@@ -588,6 +588,7 @@ class TextIndex(PluggableIndex.PluggableIndex, Persistent, ...@@ -588,6 +588,7 @@ class TextIndex(PluggableIndex.PluggableIndex, Persistent,
## various languages. ## various languages.
q = self.getLexicon().query_hook(q) q = self.getLexicon().query_hook(q)
# do some more parsing # do some more parsing
q = parse2(q, default_operator) q = parse2(q, default_operator)
## evalute the final 'expression' ## evalute the final 'expression'
...@@ -670,6 +671,7 @@ class TextIndex(PluggableIndex.PluggableIndex, Persistent, ...@@ -670,6 +671,7 @@ class TextIndex(PluggableIndex.PluggableIndex, Persistent,
query[(i - 1) : (i + 2)] = [ val ] query[(i - 1) : (i + 2)] = [ val ]
else: i = i + 1 else: i = i + 1
if (len(query) != 1): raise QueryError, "Malformed query" if (len(query) != 1): raise QueryError, "Malformed query"
return query[0] return query[0]
......
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