mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
0e36f48c19
commit
6e81aa8442
@ -149,7 +149,8 @@ class Guardian(BasicNewsRecipe):
|
|||||||
continue
|
continue
|
||||||
tt = li.find('div', attrs={'class':'trailtext'})
|
tt = li.find('div', attrs={'class':'trailtext'})
|
||||||
if tt is not None:
|
if tt is not None:
|
||||||
for da in tt.findAll('a'): da.extract()
|
for da in tt.findAll('a'):
|
||||||
|
da.extract()
|
||||||
desc = self.tag_to_string(tt).strip()
|
desc = self.tag_to_string(tt).strip()
|
||||||
yield {
|
yield {
|
||||||
'title': title, 'url':url, 'description':desc,
|
'title': title, 'url':url, 'description':desc,
|
||||||
@ -161,4 +162,3 @@ class Guardian(BasicNewsRecipe):
|
|||||||
for title, href in self.find_sections():
|
for title, href in self.find_sections():
|
||||||
feeds.append((title, list(self.find_articles(href))))
|
feeds.append((title, list(self.find_articles(href))))
|
||||||
return feeds
|
return feeds
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user