git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4584a12
)
waf: add delimiter argument to TO_LIST.
author
Günther Deschner
<gd@samba.org>
Sun, 26 Sep 2010 22:24:04 +0000
(
00:24
+0200)
committer
Günther Deschner
<gd@samba.org>
Sun, 26 Sep 2010 22:39:38 +0000
(
00:39
+0200)
Guenther
buildtools/wafsamba/samba_utils.py
patch
|
blob
|
history
diff --git
a/buildtools/wafsamba/samba_utils.py
b/buildtools/wafsamba/samba_utils.py
index d858c5c9e5e2a61b0e16a0da86261265a1674d67..aa4fa20a43962806e1850b9dd732dc549cfc2995 100644
(file)
--- 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