debian/lib/python/debian_linux/config.py: Support empty list entry.
svn path=/dists/trunk/linux-2.6/; revision=6178
This commit is contained in:
parent
bb89fb2262
commit
8d759ebb09
|
@ -23,7 +23,10 @@ class config_reader(dict):
|
|||
self.type = type
|
||||
|
||||
def __call__(self, i):
|
||||
return [j.strip() for j in re.split(self.type, i.strip())]
|
||||
i = i.strip()
|
||||
if not i:
|
||||
return []
|
||||
return [j.strip() for j in re.split(self.type, i)]
|
||||
|
||||
schema = {
|
||||
'arches': schema_item_list(),
|
||||
|
|
Loading…
Reference in New Issue