mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-29 15:45:37 +01:00
Merge from trunk
This commit is contained in:
commit
9dcdff65d5
2 changed files with 2 additions and 2 deletions
|
|
@ -346,7 +346,7 @@ def getter(x):
|
|||
for category in sorted(categories, key=lambda x: sort_key(getter(x))):
|
||||
if len(categories[category]) == 0:
|
||||
continue
|
||||
if category == 'formats' or category == 'identifiers':
|
||||
if category in ('formats', 'identifiers'):
|
||||
continue
|
||||
meta = category_meta.get(category, None)
|
||||
if meta is None:
|
||||
|
|
|
|||
|
|
@ -580,7 +580,7 @@ def getter(x):
|
|||
for category in sorted(categories, key=lambda x: sort_key(getter(x))):
|
||||
if len(categories[category]) == 0:
|
||||
continue
|
||||
if category == 'formats' or category == 'identifiers':
|
||||
if category in ('formats', 'identifiers'):
|
||||
continue
|
||||
meta = category_meta.get(category, None)
|
||||
if meta is None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue