##// END OF EJS Templates
templater: rename variable "i" to "v" in runmap()...
Yuya Nishihara -
r31806:8f203b49 default
parent child Browse files
Show More
@@ -411,17 +411,17 b' def runmap(context, mapping, data):'
411 411 else:
412 412 raise error.ParseError(_("%r is not iterable") % d)
413 413
414 for i in diter:
414 for v in diter:
415 415 lm = mapping.copy()
416 if isinstance(i, dict):
417 lm.update(i)
416 if isinstance(v, dict):
417 lm.update(v)
418 418 lm['originalnode'] = mapping.get('node')
419 419 yield tfunc(context, lm, tdata)
420 420 else:
421 421 # v is not an iterable of dicts, this happen when 'key'
422 422 # has been fully expanded already and format is useless.
423 423 # If so, return the expanded value.
424 yield i
424 yield v
425 425
426 426 def buildnegate(exp, context):
427 427 arg = compileexp(exp[1], context, exprmethods)
General Comments 0
You need to be logged in to leave comments. Login now