From 59d39cca4cecb040c48f1801db6a36db0e75da6e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 17 Apr 2021 08:56:47 +0530 Subject: [PATCH] Clean up recipe --- recipes/the_saturday_paper.recipe | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/recipes/the_saturday_paper.recipe b/recipes/the_saturday_paper.recipe index 38211eb193..e986ffc279 100644 --- a/recipes/the_saturday_paper.recipe +++ b/recipes/the_saturday_paper.recipe @@ -15,7 +15,9 @@ def classes(classes): class SaturdayPaper(BasicNewsRecipe): title = 'The Saturday Paper' __author__ = 'Alistair Francis' - description = 'The Saturday Paper is a weekly newspaper, dedicated to narrative journalism. It offers the biggest names and best writing in news, culture, and analysis, with a particular focus on Australia. ' + description = ( + 'The Saturday Paper is a weekly newspaper, dedicated to narrative journalism.' + ' It offers the biggest names and best writing in news, culture, and analysis, with a particular focus on Australia. ') language = 'en_AU' no_stylesheets = True remove_javascript = True @@ -50,7 +52,7 @@ class SaturdayPaper(BasicNewsRecipe): title = self.tag_to_string(title) url = a.find(class_="article__title_link") - if url == None: + if url is None: continue url = url['href'] if url.startswith('/'): @@ -66,4 +68,3 @@ class SaturdayPaper(BasicNewsRecipe): articles.append((feed, news)) return articles -