diff --git a/recipes/1843.recipe b/recipes/1843.recipe
index 252f36d1c6..d7c79c7122 100644
--- a/recipes/1843.recipe
+++ b/recipes/1843.recipe
@@ -358,9 +358,9 @@ class Economist(BasicNewsRecipe):
cleanup_html_article(root)
if '/interactive/' in url:
- return '
' + root.xpath('//h1')[0].text + '
' \
- + 'This article is supposed to be read in a browser' \
- + ''
+ return ('' + root.xpath('//h1')[0].text + '
'
+ 'This article is supposed to be read in a browser.'
+ '')
for div in root.xpath('//div[@class="lazy-image"]'):
noscript = list(div.iter('noscript'))
diff --git a/recipes/ad.recipe b/recipes/ad.recipe
index a8f69b107d..1164c480a5 100644
--- a/recipes/ad.recipe
+++ b/recipes/ad.recipe
@@ -85,9 +85,10 @@ class ADRecipe(BasicNewsRecipe):
def print_version(self, url):
parts = url.split('/')
- print_url = 'http://' + parts[2] + '/' + parts[3] + '/' + parts[4] + '/' + parts[5] + '/' \
- + parts[10] + '/' + parts[7] + '/print/' + \
- parts[8] + '/' + parts[9] + '/' + parts[13]
+ print_url = 'http://' + '/'.join([
+ parts[2], parts[3], parts[4], parts[5], parts[10],
+ parts[7], 'print', parts[8], parts[9], parts[13],
+ ])
return print_url
diff --git a/recipes/al_monitor.recipe b/recipes/al_monitor.recipe
index e9fad7b272..d57e602275 100644
--- a/recipes/al_monitor.recipe
+++ b/recipes/al_monitor.recipe
@@ -203,11 +203,10 @@ class AlMonitor(BasicNewsRecipe):
return self.tag_to_string(n).strip()
def _dbg_soup_node(self, node):
- s = ' cls: ' + str(node.get('class')).strip() + \
- ' id: ' + str(node.get('id')).strip() + \
- ' role: ' + str(node.get('role')).strip() + \
- ' txt: ' + self.text(node)
- return s
+ return (' cls: ' + str(node.get('class')).strip() +
+ ' id: ' + str(node.get('id')).strip() +
+ ' role: ' + str(node.get('role')).strip() +
+ ' txt: ' + self.text(node))
def _p(self, msg):
curframe = inspect.currentframe()
diff --git a/recipes/billorielly.recipe b/recipes/billorielly.recipe
index 4223df0093..bb87260362 100644
--- a/recipes/billorielly.recipe
+++ b/recipes/billorielly.recipe
@@ -49,8 +49,7 @@ class BillOReilly(BasicNewsRecipe):
continue
if url.startswith('/'):
- url = 'http://www.billoreilly.com' + url + \
- '&dest=/pg/jsp/community/tvshowprint.jsp'
+ url = 'http://www.billoreilly.com' + url + '&dest=/pg/jsp/community/tvshowprint.jsp'
self.log('\t\tFound article:', title)
self.log('\t\t\t', url)
diff --git a/recipes/brewiarz.recipe b/recipes/brewiarz.recipe
index d666d4835a..0eb5cf0542 100644
--- a/recipes/brewiarz.recipe
+++ b/recipes/brewiarz.recipe
@@ -41,21 +41,20 @@ class brewiarz(BasicNewsRecipe):
url_date_weekday = url_date.strftime('%A')
url_date_weekday_pl = weekday_dict[url_date_weekday]
- url = 'http://brewiarz.pl/' + url_date_month_roman + '_' + \
- url_date_year + '/' + url_date_day + url_date_month + '/index.php3'
+ url = ('http://brewiarz.pl/' + url_date_month_roman + '_' +
+ url_date_year + '/' + url_date_day + url_date_month + '/index.php3')
articles = self.parse_pages(url)
if articles:
- title = url_date_weekday_pl + ' ' + url_date_day + \
- '.' + url_date_month + '.' + url_date_year
+ title = (url_date_weekday_pl + ' ' + url_date_day +
+ '.' + url_date_month + '.' + url_date_year)
feeds.append((title, articles))
else:
sectors = self.get_sectors(url)
for subpage in sectors:
- title = url_date_weekday_pl + ' ' + url_date_day + '.' + \
- url_date_month + '.' + url_date_year + ' - ' + subpage.string
- url = 'http://brewiarz.pl/' + url_date_month_roman + '_' + url_date_year + \
- '/' + url_date_day + url_date_month + \
- '/' + subpage['href']
+ title = (url_date_weekday_pl + ' ' + url_date_day + '.' +
+ url_date_month + '.' + url_date_year + ' - ' + subpage.string)
+ url = ('http://brewiarz.pl/' + url_date_month_roman + '_' + url_date_year +
+ '/' + url_date_day + url_date_month + '/' + subpage['href'])
print(url)
articles = self.parse_pages(url)
if articles:
diff --git a/recipes/calgary_herald.recipe b/recipes/calgary_herald.recipe
index b9e3f145ba..eef67df749 100644
--- a/recipes/calgary_herald.recipe
+++ b/recipes/calgary_herald.recipe
@@ -154,8 +154,7 @@ class CanWestPaper(BasicNewsRecipe):
except:
while daysback < 7:
cover = 'http://webmedia.newseum.org/newseum-multimedia/dfp/jpg' + \
- str((date.today() - timedelta(days=daysback)).day) + \
- '/lg/' + self.fp_tag + '.jpg'
+ str((date.today() - timedelta(days=daysback)).day) + '/lg/' + self.fp_tag + '.jpg'
br = BasicNewsRecipe.get_browser(self)
try:
br.open(cover)
diff --git a/recipes/caravan_magazine.recipe b/recipes/caravan_magazine.recipe
index 6f276c5090..938fc7b393 100644
--- a/recipes/caravan_magazine.recipe
+++ b/recipes/caravan_magazine.recipe
@@ -213,6 +213,6 @@ class CaravanMagazine(BasicNewsRecipe):
for x in art_cont['premiumContent']:
premium_cont += '\n' + ''.join(parse_body(x))
- return '' \
- + cat + title + desc + auth + lede + free_cont + premium_cont + \
- '
'
+ return (''
+ + cat + title + desc + auth + lede + free_cont + premium_cont +
+ '
')
diff --git a/recipes/cato.recipe b/recipes/cato.recipe
index c1a22df772..234ad3edba 100644
--- a/recipes/cato.recipe
+++ b/recipes/cato.recipe
@@ -5,9 +5,9 @@ from calibre.web.feeds.news import BasicNewsRecipe
class CATOInstitute(BasicNewsRecipe):
title = u'The CATO Institute'
- description = 'The Cato Institute is a public policy research organization — a think tank — \
-dedicated to the principles of individual liberty, limited government, free markets and peace.\
- Its scholars and analysts conduct independent, nonpartisan research on a wide range of policy issues.'
+ description = ('The Cato Institute is a public policy research organization — a think tank — '
+ 'dedicated to the principles of individual liberty, limited government, free markets and peace. '
+ 'Its scholars and analysts conduct independent, nonpartisan research on a wide range of policy issues.')
__author__ = '_reader'
__date__ = '05 July 2012'
__version__ = '1.0'
diff --git a/recipes/courrierinternational.recipe b/recipes/courrierinternational.recipe
index 891901ead0..043952ceaa 100644
--- a/recipes/courrierinternational.recipe
+++ b/recipes/courrierinternational.recipe
@@ -2,8 +2,8 @@
# vim:fileencoding=utf-8
__license__ = 'GPL v3'
-__copyright__ = '2009, Mathieu Godlewski \
-2015, Rémi Vanicat , '
+ '2015, Rémi Vanicat ' + root.xpath('//h1')[0].text + '
' \
- + 'This article is supposed to be read in a browser' \
- + '