mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
unsorted dunder all/slots (extra-edit)
This commit is contained in:
parent
d8aecf09ea
commit
c9b55c924a
@ -144,7 +144,7 @@ class CalibrePluginLoader:
|
|||||||
'fullname_in_plugin',
|
'fullname_in_plugin',
|
||||||
'names',
|
'names',
|
||||||
'plugin_name',
|
'plugin_name',
|
||||||
'zip_file_path'
|
'zip_file_path',
|
||||||
)
|
)
|
||||||
|
|
||||||
def __init__(self, plugin_name, fullname_in_plugin, zip_file_path, names, filename, is_package, all_names):
|
def __init__(self, plugin_name, fullname_in_plugin, zip_file_path, names, filename, is_package, all_names):
|
||||||
|
@ -164,7 +164,7 @@ def fixcase(x):
|
|||||||
|
|
||||||
|
|
||||||
class Option:
|
class Option:
|
||||||
__slots__ = ['choices', 'default', 'desc', 'label', 'name', 'type']
|
__slots__ = ('choices', 'default', 'desc', 'label', 'name', 'type')
|
||||||
|
|
||||||
def __init__(self, name, type_, default, label, desc, choices=None):
|
def __init__(self, name, type_, default, label, desc, choices=None):
|
||||||
'''
|
'''
|
||||||
|
@ -386,7 +386,7 @@ class Box(QWidget):
|
|||||||
|
|
||||||
class Property:
|
class Property:
|
||||||
|
|
||||||
__slots__ = 'color', 'important', 'is_overriden', 'name', 'specificity', 'value'
|
__slots__ = ('color', 'important', 'is_overriden', 'name', 'specificity', 'value')
|
||||||
|
|
||||||
def __init__(self, prop, specificity=()):
|
def __init__(self, prop, specificity=()):
|
||||||
self.name, self.value, self.important, self.color = prop
|
self.name, self.value, self.important, self.color = prop
|
||||||
|
@ -194,7 +194,7 @@ class SearchResult:
|
|||||||
'search_query',
|
'search_query',
|
||||||
'spine_idx',
|
'spine_idx',
|
||||||
'text',
|
'text',
|
||||||
'toc_nodes'
|
'toc_nodes',
|
||||||
)
|
)
|
||||||
|
|
||||||
def __init__(self, search_query, before, text, after, q, name, spine_idx, index, offset, result_num):
|
def __init__(self, search_query, before, text, after, q, name, spine_idx, index, offset, result_num):
|
||||||
|
@ -231,7 +231,7 @@ class PyScorer:
|
|||||||
'level2',
|
'level2',
|
||||||
'level3',
|
'level3',
|
||||||
'max_score_per_char',
|
'max_score_per_char',
|
||||||
'memory'
|
'memory',
|
||||||
)
|
)
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
|
@ -36,7 +36,7 @@ __all__ = [
|
|||||||
'ThreadPool',
|
'ThreadPool',
|
||||||
'WorkRequest',
|
'WorkRequest',
|
||||||
'WorkerThread',
|
'WorkerThread',
|
||||||
'makeRequests'
|
'makeRequests',
|
||||||
]
|
]
|
||||||
|
|
||||||
__author__ = 'Christopher Arndt'
|
__author__ = 'Christopher Arndt'
|
||||||
|
@ -334,7 +334,7 @@ class ZipInfo :
|
|||||||
'orig_filename',
|
'orig_filename',
|
||||||
'reserved',
|
'reserved',
|
||||||
'volume',
|
'volume',
|
||||||
)
|
)
|
||||||
|
|
||||||
def __init__(self, filename='NoName', date_time=(1980,1,1,0,0,0)):
|
def __init__(self, filename='NoName', date_time=(1980,1,1,0,0,0)):
|
||||||
self.orig_filename = filename # Original file name in archive
|
self.orig_filename = filename # Original file name in archive
|
||||||
|
Loading…
x
Reference in New Issue
Block a user