mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-06 14:04:57 +01:00
pep8
This commit is contained in:
parent
1b89462d73
commit
0b53f53529
3 changed files with 6 additions and 4 deletions
|
|
@ -91,7 +91,8 @@ class NewYorkTimes(BasicNewsRecipe):
|
|||
dict(id=lambda x: x and 'sharetools-' in x),
|
||||
dict(id='newsletter-promo supported-by-ad bottom-wrapper'.split()),
|
||||
classes('story-print-citation supported-by accessibility-ad-header visually-hidden bottom-of-article ad'),
|
||||
dict(attrs={'class': lambda x: x and ('SectionBar' in x or 'recirculation' in x or 'ResponsiveAd' in x or 'accessibility-visuallyHidden' in x or 'RelatedCoverage' in x)}),
|
||||
dict(attrs={'class': lambda x: x and (
|
||||
'SectionBar' in x or 'recirculation' in x or 'ResponsiveAd' in x or 'accessibility-visuallyHidden' in x or 'RelatedCoverage' in x)}),
|
||||
]
|
||||
|
||||
def preprocess_html(self, soup):
|
||||
|
|
|
|||
|
|
@ -91,7 +91,8 @@ class NewYorkTimes(BasicNewsRecipe):
|
|||
dict(id=lambda x: x and 'sharetools-' in x),
|
||||
dict(id='newsletter-promo supported-by-ad bottom-wrapper'.split()),
|
||||
classes('story-print-citation supported-by accessibility-ad-header visually-hidden bottom-of-article ad'),
|
||||
dict(attrs={'class': lambda x: x and ('SectionBar' in x or 'recirculation' in x or 'ResponsiveAd' in x or 'accessibility-visuallyHidden' in x or 'RelatedCoverage' in x)}),
|
||||
dict(attrs={'class': lambda x: x and (
|
||||
'SectionBar' in x or 'recirculation' in x or 'ResponsiveAd' in x or 'accessibility-visuallyHidden' in x or 'RelatedCoverage' in x)}),
|
||||
]
|
||||
|
||||
def preprocess_html(self, soup):
|
||||
|
|
|
|||
|
|
@ -509,8 +509,8 @@ def fill_in_books_box(self, selected_item):
|
|||
select_item = None
|
||||
self.books_table.setSortingEnabled(False)
|
||||
self.books_table.blockSignals(True)
|
||||
tt = ('<p>' +
|
||||
_('Double click on a book to change the selection in the library view or '
|
||||
tt = ('<p>' + _(
|
||||
'Double click on a book to change the selection in the library view or '
|
||||
'change the column shown in the left-hand pane. '
|
||||
'Shift- or Control- double click to edit the metadata of a book, '
|
||||
'which also changes the selected book.'
|
||||
|
|
|
|||
Loading…
Reference in a new issue