Allow passing a pre-formed list as text.
This commit is contained in:
parent
ea415b953c
commit
d108670693
1 changed files with 2 additions and 0 deletions
|
@ -150,6 +150,8 @@ def search(
|
||||||
recurse=not local_only,
|
recurse=not local_only,
|
||||||
yield_directories=True,
|
yield_directories=True,
|
||||||
)
|
)
|
||||||
|
elif isinstance(text, (list, tuple)):
|
||||||
|
search_objects = text
|
||||||
else:
|
else:
|
||||||
search_objects = text.splitlines()
|
search_objects = text.splitlines()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue