diff mercurial/templater.py @ 33033:c31d45623304

py3: convert kwargs' keys' to str using pycompat.strkwargs() On Python 3, we must have keys of keyword arguments as str.
author Pulkit Goyal <7895pulkit@gmail.com>
date Thu, 22 Jun 2017 03:16:16 +0530
parents 4e6dc34b5d7a
children 2943141f5e07
line wrap: on
line diff
--- 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):