[PATCH 2/3] rtemstoolkit/configuration: Treat an empty variable as an empty list

chrisj at rtems.org chrisj at rtems.org
Fri Sep 25 01:29:10 UTC 2020


From: Chris Johns <chrisj at rtems.org>

---
 rtemstoolkit/configuration.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rtemstoolkit/configuration.py b/rtemstoolkit/configuration.py
index a73fd9b..1f57de4 100644
--- a/rtemstoolkit/configuration.py
+++ b/rtemstoolkit/configuration.py
@@ -140,7 +140,7 @@ class configuration:
 
     def comma_list(self, section, label, err = True):
         items = self.get_item(section, label, err)
-        if items is None:
+        if items is None or len(items) == 0:
             return []
         return sorted(set([a.strip() for a in items.split(',')]))
 
-- 
2.24.1



More information about the devel mailing list