mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
c7c7b08633
commit
d145c8ce36
@ -3,7 +3,6 @@
|
|||||||
from __future__ import absolute_import, division, print_function, unicode_literals
|
from __future__ import absolute_import, division, print_function, unicode_literals
|
||||||
|
|
||||||
import json
|
import json
|
||||||
from pprint import pformat
|
|
||||||
|
|
||||||
from calibre.web.feeds.news import BasicNewsRecipe
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
from calibre import prepare_string_for_xml as escape
|
from calibre import prepare_string_for_xml as escape
|
||||||
@ -47,7 +46,7 @@ def parse_body(item):
|
|||||||
c = item['cntnt']
|
c = item['cntnt']
|
||||||
if item.get('type') == 'inline':
|
if item.get('type') == 'inline':
|
||||||
if c.get('cmsType') == 'listicle':
|
if c.get('cmsType') == 'listicle':
|
||||||
if 'title' in c:
|
if 'title' in c:
|
||||||
yield '<h3>' + escape(c['title']) + "</h3>"
|
yield '<h3>' + escape(c['title']) + "</h3>"
|
||||||
yield c['text']
|
yield c['text']
|
||||||
elif c.get('cmsType') == 'image':
|
elif c.get('cmsType') == 'image':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user