[XEND] Prevent None values from appearing in Device SXP

Signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
Alastair Tse committed 2006-12-07 14:38:16 +00:00
1 parent bd52f01c26
commit 6fe80e69d0
1 file changed
+4 -2
@@ -226,9 +226,11 @@ class DevController:
for key, val in configDict.items():
if isinstance(val, (types.ListType, types.TupleType)):
for v in val:
sxpr.append([key, v])
if v != None:
sxpr.append([key, v])
else:
sxpr.append([key, val])
if val != None:
sxpr.append([key, val])
return sxpr
def sxprs(self):
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.