[kernel] r6178 -
dists/trunk/linux-2.6/debian/lib/python/debian_linux
Bastian Blank
waldi at costa.debian.org
Mon Mar 13 12:25:15 UTC 2006
Author: waldi
Date: Mon Mar 13 12:25:14 2006
New Revision: 6178
Modified:
dists/trunk/linux-2.6/debian/lib/python/debian_linux/config.py
Log:
debian/lib/python/debian_linux/config.py: Support empty list entry.
Modified: dists/trunk/linux-2.6/debian/lib/python/debian_linux/config.py
==============================================================================
--- dists/trunk/linux-2.6/debian/lib/python/debian_linux/config.py (original)
+++ dists/trunk/linux-2.6/debian/lib/python/debian_linux/config.py Mon Mar 13 12:25:14 2006
@@ -23,7 +23,10 @@
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(),
More information about the Kernel-svn-changes
mailing list