fixing last flake8 issue
This commit is contained in:
parent
0743ef4d0b
commit
8770f2a0ea
@ -52,16 +52,14 @@ def list(parser, args):
|
|||||||
|
|
||||||
# filter if a filter arg was provided
|
# filter if a filter arg was provided
|
||||||
if args.filter:
|
if args.filter:
|
||||||
filters = []
|
res = []
|
||||||
for f in args.filter:
|
for f in args.filter:
|
||||||
if '*' not in f and '?' not in f:
|
if '*' not in f and '?' not in f:
|
||||||
filters.append('*' + f + '*')
|
r = fnmatch.translate('*' + f + '*')
|
||||||
else:
|
else:
|
||||||
filters.append(f)
|
r = fnmatch.translate(f)
|
||||||
|
rc = re.compile(r, flags=re.I if args.insensitive else 0)
|
||||||
res = [re.compile(fnmatch.translate(f),
|
res.append(rc)
|
||||||
flags=re.I if args.insensitive else 0)
|
|
||||||
for f in filters]
|
|
||||||
|
|
||||||
if args.search_description:
|
if args.search_description:
|
||||||
def match(p, f):
|
def match(p, f):
|
||||||
|
Loading…
Reference in New Issue
Block a user