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:
Bastian Blank 2006-03-13 12:25:14 +00:00
parent bb89fb2262
commit 8d759ebb09
1 changed files with 4 additions and 1 deletions

View File

@ -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(),