Skip to content

Commit

Permalink
Fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
GjjvdBurg committed Mar 27, 2021
1 parent 4dd65ec commit d90d9f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readabilipy/simplifiers/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def remove_metadata(soup):
We were a bit worried about potentially removing content here but satisfied
ourselves it won't be displayed by most browsers in most cases
(see https://github.com/alan-turing-institute/ReadabiliPy/issues/32)"""
for comment in soup.findAll(string=lambda text: any([isinstance(text, x) for x in [Comment, Doctype]])):
for comment in soup.findAll(string=lambda text: any(isinstance(text, x) for x in [Comment, Doctype])):
comment.extract()


Expand Down

0 comments on commit d90d9f6

Please sign in to comment.