Mercurial > hg-stable
changeset 31806:8f203b491bb5
templater: rename variable "i" to "v" in runmap()
I want to reuse "i" for index.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 22 Apr 2016 21:45:06 +0900 |
parents | dca9b6922514 |
children | e6eb86b154c5 |
files | mercurial/templater.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/templater.py Sun Apr 02 22:43:18 2017 +0900 +++ b/mercurial/templater.py Fri Apr 22 21:45:06 2016 +0900 @@ -411,17 +411,17 @@ else: raise error.ParseError(_("%r is not iterable") % d) - for i in diter: + for v in diter: lm = mapping.copy() - if isinstance(i, dict): - lm.update(i) + if isinstance(v, dict): + lm.update(v) lm['originalnode'] = mapping.get('node') yield tfunc(context, lm, tdata) else: # v is not an iterable of dicts, this happen when 'key' # has been fully expanded already and format is useless. # If so, return the expanded value. - yield i + yield v def buildnegate(exp, context): arg = compileexp(exp[1], context, exprmethods)