From 63c3af79817f8884292ac126b2b167934463b99f Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 27 Sep 2010 00:24:04 +0200 Subject: waf: add delimiter argument to TO_LIST. Guenther --- buildtools/wafsamba/samba_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'buildtools/wafsamba/samba_utils.py') diff --git a/buildtools/wafsamba/samba_utils.py b/buildtools/wafsamba/samba_utils.py index d858c5c9e5..aa4fa20a43 100644 --- a/buildtools/wafsamba/samba_utils.py +++ b/buildtools/wafsamba/samba_utils.py @@ -194,13 +194,13 @@ def unique_list(seq): return result -def TO_LIST(str): +def TO_LIST(str, delimiter=None): '''Split a list, preserving quoted strings and existing lists''' if str is None: return [] if isinstance(str, list): return str - lst = str.split() + lst = str.split(delimiter) # the string may have had quotes in it, now we # check if we did have quotes, and use the slower shlex # if we need to -- cgit