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
|
||||
if args.filter:
|
||||
filters = []
|
||||
res = []
|
||||
for f in args.filter:
|
||||
if '*' not in f and '?' not in f:
|
||||
filters.append('*' + f + '*')
|
||||
r = fnmatch.translate('*' + f + '*')
|
||||
else:
|
||||
filters.append(f)
|
||||
|
||||
res = [re.compile(fnmatch.translate(f),
|
||||
flags=re.I if args.insensitive else 0)
|
||||
for f in filters]
|
||||
r = fnmatch.translate(f)
|
||||
rc = re.compile(r, flags=re.I if args.insensitive else 0)
|
||||
res.append(rc)
|
||||
|
||||
if args.search_description:
|
||||
def match(p, f):
|
||||
|
Loading…
Reference in New Issue
Block a user