From adfc877853ff7f0e5e17a72fcad451953d1dc421 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 4 Jan 2024 14:04:51 +0530 Subject: [PATCH] pep8 --- recipes/natgeo.recipe | 1 - recipes/natgeomag.recipe | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/recipes/natgeo.recipe b/recipes/natgeo.recipe index 3b1b0b112c..2dd2c0d3a9 100644 --- a/recipes/natgeo.recipe +++ b/recipes/natgeo.recipe @@ -3,7 +3,6 @@ from __future__ import absolute_import, division, print_function, unicode_literals import json -import re from pprint import pformat from calibre.web.feeds.news import BasicNewsRecipe diff --git a/recipes/natgeomag.recipe b/recipes/natgeomag.recipe index a4869e4052..4140a45777 100644 --- a/recipes/natgeomag.recipe +++ b/recipes/natgeomag.recipe @@ -2,7 +2,7 @@ # vim:fileencoding=utf-8 from __future__ import absolute_import, division, print_function, unicode_literals -import json, re +import json from datetime import date from pprint import pformat @@ -52,7 +52,7 @@ def parse_body(item): c = item['cntnt'] if item.get('type') == 'inline': if c.get('cmsType') == 'listicle': - if 'title' in c: + if 'title' in c: yield '

' + escape(c['title']) + '

' yield c['text'] elif c.get('cmsType') == 'image': @@ -60,7 +60,7 @@ def parse_body(item): yield line elif c.get('cmsType') == 'imagegroup': for imgs in c['images']: - for line in parse_lead_image(imgs): + for line in parse_lead_image(imgs): yield line elif c.get('cmsType') == 'pullquote': if 'quote' in c: