mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-26 09:53:08 +02:00
...
This commit is contained in:
commit
835faaa591
1 changed files with 3 additions and 1 deletions
|
|
@ -60,7 +60,8 @@ def __str__(self):
|
|||
return ans
|
||||
|
||||
def __cmp__(self, other):
|
||||
return cmp(self.is_customized, getattr(other, 'is_customized', False))
|
||||
return -1 * cmp(self.is_customized,
|
||||
getattr(other, 'is_customized', False))
|
||||
|
||||
@property
|
||||
def is_customized(self):
|
||||
|
|
@ -139,6 +140,7 @@ def parse_tweaks(self, defaults, custom):
|
|||
pos = self.read_tweak(lines, pos, dl, l)
|
||||
pos += 1
|
||||
|
||||
self.tweaks.sort()
|
||||
default_keys = set(dl.iterkeys())
|
||||
custom_keys = set(l.iterkeys())
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue