From d1086706938aef094b8a61abc54e2acc55fe4121 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 25 Jan 2020 01:11:11 -0800 Subject: [PATCH] Allow passing a pre-formed list as text. --- search.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/search.py b/search.py index d26408a..6b43b70 100644 --- a/search.py +++ b/search.py @@ -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()