diff options
author | Chris Johns <chrisj@rtems.org> | 2020-09-25 11:24:58 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2020-09-26 10:49:27 +1000 |
commit | 84181adf61c6972930b254f1d1da2bcc4cce0b48 (patch) | |
tree | bf79fe7485a7e81cc801e462bc07baeaa8f73d8d /rtemstoolkit | |
parent | Move all python commands to use env python (diff) | |
download | rtems-tools-84181adf61c6972930b254f1d1da2bcc4cce0b48.tar.bz2 |
rtemstoolkit/configuration: Treat an empty variable as an empty list
Diffstat (limited to 'rtemstoolkit')
-rw-r--r-- | rtemstoolkit/configuration.py | 2 |
1 files changed, 1 insertions, 1 deletions
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(',')])) |