mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
77a58c8511
commit
5736f17735
@ -771,7 +771,7 @@ class SavedSearches(Dialog):
|
|||||||
def err():
|
def err():
|
||||||
error_dialog(self, _('Invalid data'), _(
|
error_dialog(self, _('Invalid data'), _(
|
||||||
'The file %s does not contain valid saved searches') % path, show=True)
|
'The file %s does not contain valid saved searches') % path, show=True)
|
||||||
if not isinstance(obj, dict) or not 'version' in obj or not 'searches' in obj or obj['version'] not in (1,):
|
if not isinstance(obj, dict) or 'version' not in obj or 'searches' not in obj or obj['version'] not in (1,):
|
||||||
return err()
|
return err()
|
||||||
searches = []
|
searches = []
|
||||||
for item in obj['searches']:
|
for item in obj['searches']:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user