mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix docstring of is_image_collection
This commit is contained in:
parent
e83738653c
commit
acbd785af9
@ -77,7 +77,7 @@ class OptionRecommendation(object):
|
||||
self.option.choices:
|
||||
raise ValueError('OpRec: %s: Recommended value not in choices'%
|
||||
self.option.name)
|
||||
if not (isinstance(self.recommended_value, (int, float, str, unicode))\
|
||||
if not (isinstance(self.recommended_value, (int, float, str, unicode))
|
||||
or self.recommended_value is None):
|
||||
raise ValueError('OpRec: %s:'%self.option.name +
|
||||
repr(self.recommended_value) +
|
||||
@ -139,8 +139,10 @@ class InputFormatPlugin(Plugin):
|
||||
file_types = set([])
|
||||
|
||||
#: If True, this input plugin generates a collection of images,
|
||||
#: one per HTML file. You can obtain access to the images via
|
||||
#: convenience method, :meth:`get_image_collection`.
|
||||
#: one per HTML file. This can be set dynamically, in the convert method
|
||||
#: if the input files can be both image collections and non-image collections.
|
||||
#: If you set this to True, you must implement the get_images() method that returns
|
||||
#: a list of images.
|
||||
is_image_collection = False
|
||||
|
||||
#: Number of CPU cores used by this plugin
|
||||
@ -238,7 +240,6 @@ class InputFormatPlugin(Plugin):
|
||||
ret = self.convert(stream, options, file_ext,
|
||||
log, accelerators)
|
||||
|
||||
|
||||
return ret
|
||||
|
||||
def postprocess_book(self, oeb, opts, log):
|
||||
@ -313,7 +314,6 @@ class OutputFormatPlugin(Plugin):
|
||||
Plugin.__init__(self, *args)
|
||||
self.report_progress = DummyReporter()
|
||||
|
||||
|
||||
def convert(self, oeb_book, output, input_plugin, opts, log):
|
||||
'''
|
||||
Render the contents of `oeb_book` (which is an instance of
|
||||
@ -363,3 +363,4 @@ class OutputFormatPlugin(Plugin):
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user