mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
86691f22a2
commit
32fccdb901
@ -208,10 +208,10 @@ class EmailMixin(object): # {{{
|
||||
if not components:
|
||||
components = [mi.title]
|
||||
subjects.append(os.path.join(*components))
|
||||
a = authors_to_string(mi.authors if mi.authors else \
|
||||
a = authors_to_string(mi.authors if mi.authors else
|
||||
[_('Unknown')])
|
||||
texts.append(_('Attached, you will find the e-book') + \
|
||||
'\n\n' + t + '\n\t' + _('by') + ' ' + a + '\n\n' + \
|
||||
texts.append(_('Attached, you will find the e-book') +
|
||||
'\n\n' + t + '\n\t' + _('by') + ' ' + a + '\n\n' +
|
||||
_('in the %s format.') %
|
||||
os.path.splitext(f)[1][1:].upper())
|
||||
prefix = ascii_filename(t+' - '+a)
|
||||
@ -231,7 +231,7 @@ class EmailMixin(object): # {{{
|
||||
auto = []
|
||||
if _auto_ids != []:
|
||||
for id in _auto_ids:
|
||||
if specific_format == None:
|
||||
if specific_format is None:
|
||||
dbfmts = self.library_view.model().db.formats(id, index_is_id=True)
|
||||
formats = [f.lower() for f in (dbfmts.split(',') if dbfmts else
|
||||
[])]
|
||||
@ -302,8 +302,9 @@ class EmailMixin(object): # {{{
|
||||
sent_mails = email_news(mi, remove,
|
||||
get_fmts, self.email_sent, self.job_manager)
|
||||
if sent_mails:
|
||||
self.status_bar.show_message(_('Sent news to')+' '+\
|
||||
self.status_bar.show_message(_('Sent news to')+' '+
|
||||
', '.join(sent_mails), 3000)
|
||||
|
||||
# }}}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user