Fix pep8 issues (3)
This commit is contained in:
parent
0477ef5581
commit
7bcc1d41a4
|
@ -125,12 +125,12 @@ class Filter:
|
|||
def remove_site_blocks(self, soup) -> None:
|
||||
if not self.config.block:
|
||||
return
|
||||
selected=soup.body.findAll(text = re.compile(' '.join(['-site:'
|
||||
+ _ for _ in self.config.block.split(',')])))
|
||||
selected = soup.body.findAll(
|
||||
text=re.compile(' '.join(['-site:' + _ for _ in self.config.block.split(',')])))
|
||||
|
||||
for result in selected:
|
||||
result.string.replace_with(result.string.replace(' '.join(['-site:'
|
||||
+ _ for _ in self.config.block.split(',')]), ''))
|
||||
result.string.replace_with(
|
||||
result.string.replace(' '.join(['-site:' + _ for _ in self.config.block.split(',')]), ''))
|
||||
|
||||
def remove_ads(self) -> None:
|
||||
"""Removes ads found in the list of search result divs
|
||||
|
|
Loading…
Reference in New Issue
Block a user