From d90d9f66640551821796c9c7bc2419b55d72bbf2 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Sat, 27 Mar 2021 17:32:58 +0000 Subject: [PATCH] Fix linter error --- readabilipy/simplifiers/html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readabilipy/simplifiers/html.py b/readabilipy/simplifiers/html.py index de6b567..103d88d 100644 --- a/readabilipy/simplifiers/html.py +++ b/readabilipy/simplifiers/html.py @@ -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()