diff options
author | Günther Deschner <gd@samba.org> | 2010-09-27 00:24:04 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-09-27 00:39:38 +0200 |
commit | 63c3af79817f8884292ac126b2b167934463b99f (patch) | |
tree | 52a8e8b9567a9410279f2313befc7c7025374ccd | |
parent | 4584a12b6a251389e1574985862ae69857d9e0f0 (diff) | |
download | samba-63c3af79817f8884292ac126b2b167934463b99f.tar.gz samba-63c3af79817f8884292ac126b2b167934463b99f.tar.bz2 samba-63c3af79817f8884292ac126b2b167934463b99f.zip |
waf: add delimiter argument to TO_LIST.
Guenther
-rw-r--r-- | buildtools/wafsamba/samba_utils.py | 4 |
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 |