Remove redundant OS specific code
The text variable is already a str.
This commit is contained in:
parent
0f906b363b
commit
8876252771
@ -29,9 +29,6 @@ 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(str(self.text)) != -1)
|
|
||||||
else:
|
|
||||||
return self.invert ^ (self.func(handle).upper().find(self.text) != -1)
|
return self.invert ^ (self.func(handle).upper().find(self.text) != -1)
|
||||||
|
|
||||||
class ExactSearchFilter(SearchFilter):
|
class ExactSearchFilter(SearchFilter):
|
||||||
|
Loading…
Reference in New Issue
Block a user