templater: fix invalid reference of runsymbol in doctest
authorYuya Nishihara <yuya@tcha.org>
Sat, 17 Mar 2018 15:22:14 +0900
changeset 36987 4b744c7b35ce
parent 36986 afac8ab37c2c
child 36988 317382151ac3
templater: fix invalid reference of runsymbol in doctest Oversight at da710c3df4dc. I was just lucky that this lambda function is never evaluated.
mercurial/templater.py
--- 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])