From 0cf985b85062918b852b6489a45a09b170af8f00 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 4 Nov 2014 09:10:48 +0530 Subject: [PATCH] ... --- recipes/guardian.recipe | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/guardian.recipe b/recipes/guardian.recipe index 533c1f0a27..aa49484185 100644 --- a/recipes/guardian.recipe +++ b/recipes/guardian.recipe @@ -104,7 +104,7 @@ class Guardian(BasicNewsRecipe): for tag in soup.findAll(name=['ul','li']): tag.name = 'div' - # removes number next to rating stars + # removes number next to rating stars items_to_remove = [] rating_container = soup.find('div', attrs={'class': ['rating-container']}) if rating_container: @@ -130,7 +130,7 @@ class Guardian(BasicNewsRecipe): for s in idx.findAll('strong', attrs={'class':'book'}): a = s.find('a', href=True) section_title = self.tag_to_string(a) - if not section_title in self.ignore_sections: + if section_title not in self.ignore_sections: prefix = '' if section_title != 'Main section': prefix = section_title + ': '