diff options
author | Aneesh Dogra <lionaneesh@gmail.com> | 2012-12-19 05:29:13 (GMT) |
---|---|---|
committer | Aneesh Dogra <lionaneesh@gmail.com> | 2012-12-19 05:29:13 (GMT) |
commit | 0b0c86fcf333fab188ee21371e850519a2a30cc5 (patch) | |
tree | e9ef61135c3f32a26e2d836bde13659084cd789d | |
parent | fd972f1ca3da5e0f5b418709f2b88e9ae422fc9f (diff) |
Fix .lower errors.
-rw-r--r-- | ReadEtextsActivity.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ReadEtextsActivity.py b/ReadEtextsActivity.py index 433a9a8..fcdac66 100644 --- a/ReadEtextsActivity.py +++ b/ReadEtextsActivity.py @@ -1140,7 +1140,7 @@ class ReadEtextsActivity(activity.Activity): self.list_scroller_visible = False self.book_selected = False self.ls.clear() - search_tuple = search_text.get_lower()().split() + search_tuple = search_text.lower().split() if len(search_tuple) == 0: self.alert(_('Error'), _('You must enter at least one search word.')) self.books_toolbar.search_entry.grab_focus() @@ -1150,7 +1150,7 @@ class ReadEtextsActivity(activity.Activity): line = unicode(f.readline(), "iso-8859-1") if not line: break - line_lower = line.get_lower()() + line_lower = line.lower() i = 0 words_found = 0 while i < len(search_tuple): @@ -1321,7 +1321,7 @@ class ReadEtextsActivity(activity.Activity): break line_increment = (len(line) / 80) + 1 linecount = linecount + line_increment - positions = self.allindices(line.get_lower()(), search_text.get_lower()()) + positions = self.allindices(line.lower(), search_text.lower()) for position in positions: found_pos = charcount + position + 3 found_tuple = (pagecount, found_pos, len(search_text) + found_pos) |