summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-09-27 00:24:04 +0200
committerGünther Deschner <gd@samba.org>2010-09-27 00:39:38 +0200
commit63c3af79817f8884292ac126b2b167934463b99f (patch)
tree52a8e8b9567a9410279f2313befc7c7025374ccd /buildtools/wafsamba
parent4584a12b6a251389e1574985862ae69857d9e0f0 (diff)
downloadsamba-63c3af79817f8884292ac126b2b167934463b99f.tar.gz
samba-63c3af79817f8884292ac126b2b167934463b99f.tar.bz2
samba-63c3af79817f8884292ac126b2b167934463b99f.zip
waf: add delimiter argument to TO_LIST.
Guenther
Diffstat (limited to 'buildtools/wafsamba')
-rw-r--r--buildtools/wafsamba/samba_utils.py4
1 files changed, 2 insertions, 2 deletions
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