X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfatables%2Fxmlextension.py;h=dcc04190ec2b919bde71f2845ccaad65cdba8e6c;hb=78e5fb75e3793ae9dfce7f1bbd4a2b0f27b7ecc6;hp=f90e0fb186b2f678191c2acd830c561168936398;hpb=14ca7e52f6af8accc0ba6e362e2a674ea4579e7f;p=sfa.git diff --git a/sfatables/xmlextension.py b/sfatables/xmlextension.py index f90e0fb1..dcc04190 100644 --- a/sfatables/xmlextension.py +++ b/sfatables/xmlextension.py @@ -37,7 +37,7 @@ class Xmlextension: context = p.xpathEval('//attributes/attribute[@terminal="yes"]') self.terminal = (context != []) - self.arguments = map(lambda (name,help,target):{'name':name.content,'help':help.content,'target':target.content}, zip(name,help,target)) + self.arguments = [{'name':name_help_target[0].content,'help':name_help_target[1].content,'target':name_help_target[2].content} for name_help_target in zip(name,help,target)] p.xpathFreeContext() self.xmldoc.freeDoc()