mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 13:27:06 +09:00
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:
5
debian/lib/python/debian_linux/config.py
vendored
5
debian/lib/python/debian_linux/config.py
vendored
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user