Commit 2f2b83e
committed
fixed the dbm indexer test for unicode under python2.
Replaced str(text),upper() with text.upper(). The text variable is
already a string or unicode. Also changed the final line in the method
from:
re.findall(pat,text)
to
re.findall(pat,text,re.UNICODE).
Otherwise it was turning u'Spr\xfcnge' into a wordlist of two "words"
['Spr', 'cnge'] or some such. So those two "words" were in the index
and didn't match the search for u'Spr\xfcnge'.1 parent 3edb7ee commit 2f2b83e
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
0 commit comments