Merging a dead branch (messed up with 'amend')

This commit is contained in:
Christophe de Vienne 2013-01-30 18:02:26 +01:00
commit 85c88281c9

View File

@ -79,6 +79,12 @@ def loadxml(el, datatype):
loadxml(item.find('value'), datatype.value_type))
for item in el.findall('item')
))
elif isdict(datatype):
return dict((
(loadxml(item.find('key'), datatype.key_type),
loadxml(item.find('value'), datatype.value_type))
for item in el.findall('item')
))
elif len(el):
d = {}
for attr in datatype._wsme_attributes: