##// END OF EJS Templates
templater: do not destructure operands in buildmap()...
Yuya Nishihara -
r34326:86d050ab default
parent child Browse files
Show More
@@ -410,12 +410,12 b' def runfilter(context, mapping, data):'
410 raise error.Abort(msg)
410 raise error.Abort(msg)
411
411
412 def buildmap(exp, context):
412 def buildmap(exp, context):
413 func, data = compileexp(exp[1], context, methods)
413 darg = compileexp(exp[1], context, methods)
414 tfunc, tdata = gettemplate(exp[2], context)
414 targ = gettemplate(exp[2], context)
415 return (runmap, (func, data, tfunc, tdata))
415 return (runmap, (darg, targ))
416
416
417 def runmap(context, mapping, data):
417 def runmap(context, mapping, data):
418 func, data, tfunc, tdata = data
418 (func, data), (tfunc, tdata) = data
419 d = func(context, mapping, data)
419 d = func(context, mapping, data)
420 if util.safehasattr(d, 'itermaps'):
420 if util.safehasattr(d, 'itermaps'):
421 diter = d.itermaps()
421 diter = d.itermaps()
General Comments 0
You need to be logged in to leave comments. Login now