Mercurial > public > mercurial-scm > hg-stable
diff mercurial/templater.py @ 36990:4b744c7b35ce
templater: fix invalid reference of runsymbol in doctest
Oversight at da710c3df4dc. I was just lucky that this lambda function is
never evaluated.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 17 Mar 2018 15:22:14 +0900 |
parents | 036e4483d3a1 |
children | 317382151ac3 |
line wrap: on
line diff
--- a/mercurial/templater.py Sun Mar 18 12:54:03 2018 +0900 +++ b/mercurial/templater.py Sat Mar 17 15:22:14 2018 +0900 @@ -402,7 +402,7 @@ """Compile parsed tree of function arguments into list or dict of (func, data) pairs - >>> context = engine(lambda t: (runsymbol, t)) + >>> context = engine(lambda t: (templateutil.runsymbol, t)) >>> def fargs(expr, argspec): ... x = _parseexpr(expr) ... n = getsymbol(x[1])