From 77a6c8134763dc0b50ad33e1b4419441220c47a9 Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Mon, 21 May 2012 18:38:56 +0300 Subject: wafsamba: ensure TO_LIST does not fail with empty string --- buildtools/wafsamba/samba_utils.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'buildtools/wafsamba/samba_utils.py') diff --git a/buildtools/wafsamba/samba_utils.py b/buildtools/wafsamba/samba_utils.py index 70d06704e7..c252663b93 100644 --- a/buildtools/wafsamba/samba_utils.py +++ b/buildtools/wafsamba/samba_utils.py @@ -215,6 +215,8 @@ def TO_LIST(str, delimiter=None): return [] if isinstance(str, list): return str + if len(str) == 0: + return [] 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 -- cgit