fixing last flake8 issue

This commit is contained in:
Tom Scogland 2016-06-17 13:42:27 -07:00
parent 0743ef4d0b
commit 8770f2a0ea

View File

@ -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):