Remove redundant OS specific code

The text variable is already a str.
This commit is contained in:
Nick Hall 2017-02-22 14:55:12 +00:00
parent 0f906b363b
commit 8876252771

View File

@ -29,10 +29,7 @@ class SearchFilter:
self.invert = invert self.invert = invert
def match(self, handle, db): def match(self, handle, db):
if win(): return self.invert ^ (self.func(handle).upper().find(self.text) != -1)
return self.invert ^ (self.func(handle).upper().find(str(self.text)) != -1)
else:
return self.invert ^ (self.func(handle).upper().find(self.text) != -1)
class ExactSearchFilter(SearchFilter): class ExactSearchFilter(SearchFilter):
def __init__(self, func, text, invert): def __init__(self, func, text, invert):