mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
1beb7013f5
commit
ff8950e529
@ -122,6 +122,7 @@ class TXT2TXTZ(FileTypePlugin):
|
|||||||
# No images so just import the TXT file.
|
# No images so just import the TXT file.
|
||||||
return path_to_ebook
|
return path_to_ebook
|
||||||
|
|
||||||
|
|
||||||
plugins += [HTML2ZIP, PML2PMLZ, TXT2TXTZ, ArchiveExtract,]
|
plugins += [HTML2ZIP, PML2PMLZ, TXT2TXTZ, ArchiveExtract,]
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
@ -444,6 +445,7 @@ class ZipMetadataReader(MetadataReaderPlugin):
|
|||||||
from calibre.ebooks.metadata.zip import get_metadata
|
from calibre.ebooks.metadata.zip import get_metadata
|
||||||
return get_metadata(stream)
|
return get_metadata(stream)
|
||||||
|
|
||||||
|
|
||||||
plugins += [x for x in list(locals().values()) if isinstance(x, type) and
|
plugins += [x for x in list(locals().values()) if isinstance(x, type) and
|
||||||
x.__name__.endswith('MetadataReader')]
|
x.__name__.endswith('MetadataReader')]
|
||||||
|
|
||||||
@ -1061,6 +1063,7 @@ class ActionPluginUpdater(InterfaceActionBase):
|
|||||||
description = _('Get new calibre plugins or update your existing ones')
|
description = _('Get new calibre plugins or update your existing ones')
|
||||||
actual_plugin = 'calibre.gui2.actions.plugin_updates:PluginUpdaterAction'
|
actual_plugin = 'calibre.gui2.actions.plugin_updates:PluginUpdaterAction'
|
||||||
|
|
||||||
|
|
||||||
plugins += [ActionAdd, ActionFetchAnnotations, ActionGenerateCatalog,
|
plugins += [ActionAdd, ActionFetchAnnotations, ActionGenerateCatalog,
|
||||||
ActionConvert, ActionDelete, ActionEditMetadata, ActionView,
|
ActionConvert, ActionDelete, ActionEditMetadata, ActionView,
|
||||||
ActionFetchNews, ActionSaveToDisk, ActionQuickview, ActionPolish,
|
ActionFetchNews, ActionSaveToDisk, ActionQuickview, ActionPolish,
|
||||||
@ -1342,6 +1345,7 @@ class Misc(PreferencesPlugin):
|
|||||||
config_widget = 'calibre.gui2.preferences.misc'
|
config_widget = 'calibre.gui2.preferences.misc'
|
||||||
description = _('Miscellaneous advanced configuration')
|
description = _('Miscellaneous advanced configuration')
|
||||||
|
|
||||||
|
|
||||||
plugins += [LookAndFeel, Behavior, Columns, Toolbar, Search, InputOptions,
|
plugins += [LookAndFeel, Behavior, Columns, Toolbar, Search, InputOptions,
|
||||||
CommonOptions, OutputOptions, Adding, Saving, Sending, Plugboard,
|
CommonOptions, OutputOptions, Adding, Saving, Sending, Plugboard,
|
||||||
Email, Server, Plugins, Tweaks, Misc, TemplateFunctions,
|
Email, Server, Plugins, Tweaks, Misc, TemplateFunctions,
|
||||||
@ -1899,6 +1903,7 @@ class XinXiiStore(StoreBase):
|
|||||||
headquarters = 'DE'
|
headquarters = 'DE'
|
||||||
formats = ['EPUB', 'PDF']
|
formats = ['EPUB', 'PDF']
|
||||||
|
|
||||||
|
|
||||||
plugins += [
|
plugins += [
|
||||||
StoreArchiveOrgStore,
|
StoreArchiveOrgStore,
|
||||||
StoreBubokPublishingStore,
|
StoreBubokPublishingStore,
|
||||||
@ -2009,4 +2014,3 @@ if __name__ == '__main__':
|
|||||||
''')])
|
''')])
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
raise SystemExit(1)
|
raise SystemExit(1)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user