mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-01 05:13:02 +02:00
pep8
This commit is contained in:
parent
77a58c8511
commit
5736f17735
1 changed files with 1 additions and 1 deletions
|
|
@ -771,7 +771,7 @@ def import_searches(self):
|
|||
def err():
|
||||
error_dialog(self, _('Invalid data'), _(
|
||||
'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()
|
||||
searches = []
|
||||
for item in obj['searches']:
|
||||
|
|
|
|||
Loading…
Reference in a new issue