mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
pep8
This commit is contained in:
parent
cdb70b909e
commit
5acb10fac5
@ -7,8 +7,9 @@ __author__ = u'Tomasz Jozwiak'
|
||||
gazetaprawna.pl
|
||||
'''
|
||||
|
||||
import re
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
from datetime import date
|
||||
|
||||
|
||||
class gazetaprawna(BasicNewsRecipe):
|
||||
version = 2
|
||||
@ -67,8 +68,8 @@ class gazetaprawna(BasicNewsRecipe):
|
||||
parsed_feeds = BasicNewsRecipe.parse_feeds(self)
|
||||
for n, feed in enumerate(parsed_feeds):
|
||||
for a, article in enumerate(feed):
|
||||
article.text_summary = re.sub(u'<\!\[CDATA\[', "", article.text_summary)
|
||||
article.text_summary = re.sub(u'\]\]', "", article.text_summary)
|
||||
article.text_summary = re.sub(r'<\!\[CDATA\[', "", article.text_summary)
|
||||
article.text_summary = re.sub(r'\]\]', "", article.text_summary)
|
||||
article.summary = article.text_summary
|
||||
|
||||
return parsed_feeds
|
||||
|
Loading…
x
Reference in New Issue
Block a user