Remove redundant OS specific code
The text variable is already a str.
This commit is contained in:
parent
0f906b363b
commit
8876252771
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user