Fix pep8 issues (5)

This commit is contained in:
DUO Labs 2022-02-07 18:32:46 -05:00 committed by GitHub
parent 4a3c1d6b3b
commit b0f73baad5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,11 +125,13 @@ class Filter:
def remove_site_blocks(self, soup) -> None:
if not self.config.block:
return
search_string=' '.join(['-site:' + _ for _ in self.config.block.split(',')])
search_string =
' '.join(['-site:' + _ for _ in self.config.block.split(',')])
selected = soup.body.findAll(text=re.compile(search_string))
for result in selected:
result.string.replace_with(result.string.replace(search_string, ''))
result.string.replace_with(
result.string.replace(search_string, ''))
def remove_ads(self) -> None:
"""Removes ads found in the list of search result divs