--- a/mercurial/templater.py Thu Jun 22 03:10:24 2017 +0530
+++ b/mercurial/templater.py Thu Jun 22 03:16:16 2017 +0530
@@ -371,7 +371,7 @@
except TemplateNotFound:
v = default
if callable(v):
- return v(**mapping)
+ return v(**pycompat.strkwargs(mapping))
return v
def buildtemplate(exp, context):