Fix lint issues

This commit is contained in:
Arun Prakash Jana 2018-12-02 19:58:25 +05:30
parent 0fc7741d88
commit ebb1205fd6
No known key found for this signature in database
GPG Key ID: A75979F35C080412

6
buku
View File

@ -3491,7 +3491,7 @@ def prompt(obj, results, noninteractive=False, deep=False, listtags=False, sugge
logerr('Not a BukuDb instance')
return
new_results = True if results else False
new_results = bool(results)
nav = ''
cur_index = next_index = count = 0
@ -4777,8 +4777,8 @@ POSITIONAL ARGUMENTS:
# Search record
search_results = None
search_opted = True
tags_search = True if (args.stag is not None and len(args.stag)) else False
exclude_results = True if (args.exclude is not None and len(args.exclude)) else False
tags_search = bool(args.stag is not None and len(args.stag))
exclude_results = bool(args.exclude is not None and len(args.exclude))
if args.sany is not None:
if len(args.sany):