mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
1b89462d73
commit
0b53f53529
@ -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 @@ class Quickview(QDialog, Ui_Quickview):
|
||||
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…
x
Reference in New Issue
Block a user