mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
b52d286cf5
commit
bb4a2b6010
@ -26,7 +26,6 @@ from calibre.gui2.dialogs.metadata_bulk_ui import Ui_MetadataBulkDialog
|
|||||||
from calibre.gui2.dialogs.tag_editor import TagEditor
|
from calibre.gui2.dialogs.tag_editor import TagEditor
|
||||||
from calibre.gui2.dialogs.template_line_editor import TemplateLineEditor
|
from calibre.gui2.dialogs.template_line_editor import TemplateLineEditor
|
||||||
from calibre.gui2.metadata.basic_widgets import CalendarWidget
|
from calibre.gui2.metadata.basic_widgets import CalendarWidget
|
||||||
from calibre.gui2.progress_indicator import ProgressIndicator
|
|
||||||
from calibre.utils.config import JSONConfig, dynamic, prefs, tweaks
|
from calibre.utils.config import JSONConfig, dynamic, prefs, tweaks
|
||||||
from calibre.utils.date import qt_to_dt
|
from calibre.utils.date import qt_to_dt
|
||||||
from calibre.utils.icu import capitalize, sort_key
|
from calibre.utils.icu import capitalize, sort_key
|
||||||
@ -67,7 +66,8 @@ class MyBlockingBusy(QDialog): # {{{
|
|||||||
self._layout = l = QVBoxLayout()
|
self._layout = l = QVBoxLayout()
|
||||||
self.setLayout(l)
|
self.setLayout(l)
|
||||||
# Every Path that will be taken in do_all
|
# Every Path that will be taken in do_all
|
||||||
options = [ args.cover_action == 'fromfmt' or args.read_file_metadata,
|
options = [
|
||||||
|
args.cover_action == 'fromfmt' or args.read_file_metadata,
|
||||||
args.do_swap_ta, args.do_title_case and not
|
args.do_swap_ta, args.do_title_case and not
|
||||||
args.do_swap_ta, args.do_title_sort, bool(args.au),
|
args.do_swap_ta, args.do_title_sort, bool(args.au),
|
||||||
args.do_auto_author, bool(args.aus) and args.do_aus,
|
args.do_auto_author, bool(args.aus) and args.do_aus,
|
||||||
@ -79,7 +79,8 @@ class MyBlockingBusy(QDialog): # {{{
|
|||||||
is not None, args.do_series, bool(args.series) and
|
is not None, args.do_series, bool(args.series) and
|
||||||
args.do_autonumber, args.comments is not null,
|
args.do_autonumber, args.comments is not null,
|
||||||
args.do_remove_conv, args.clear_languages, args.remove_all,
|
args.do_remove_conv, args.clear_languages, args.remove_all,
|
||||||
bool(do_sr) ]
|
bool(do_sr)
|
||||||
|
]
|
||||||
self.selected_options = sum(options)
|
self.selected_options = sum(options)
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
print("Number of steps for bulk metadata: %d" % self.selected_options)
|
print("Number of steps for bulk metadata: %d" % self.selected_options)
|
||||||
@ -343,7 +344,6 @@ class MyBlockingBusy(QDialog): # {{{
|
|||||||
self.progress_update.emit(1)
|
self.progress_update.emit(1)
|
||||||
self.progress_finished_cur_step.emit()
|
self.progress_finished_cur_step.emit()
|
||||||
|
|
||||||
|
|
||||||
# Various fields
|
# Various fields
|
||||||
if args.rating != -1:
|
if args.rating != -1:
|
||||||
self.progress_next_step_range.emit(0)
|
self.progress_next_step_range.emit(0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user