Allow passing a pre-formed list as text.

This commit is contained in:
voussoir 2020-01-25 01:11:11 -08:00
parent ea415b953c
commit d108670693

View file

@ -150,6 +150,8 @@ def search(
recurse=not local_only,
yield_directories=True,
)
elif isinstance(text, (list, tuple)):
search_objects = text
else:
search_objects = text.splitlines()