Map <group /> elements with no content to '' instead of None.

This commit is contained in:
Lance Stout 2012-09-01 13:56:48 -07:00
parent c7ec6a72cd
commit 357406d801

View file

@ -130,7 +130,10 @@ class RosterItem(ElementBase):
def get_groups(self):
groups = []
for group in self.xml.findall('{%s}group' % self.namespace):
if group.text:
groups.append(group.text)
else:
groups.append('')
return groups
def set_groups(self, values):