py3: convert kwargs' keys to str using pycompat.strkwargs
authorPulkit Goyal <7895pulkit@gmail.com>
Thu, 04 May 2017 00:24:21 +0530
changeset 37455 770bbfdc9644b7261bf2c2c28300f19c2c61176e
parent 37443 a2ab9ebcd85b09e33d3036ceccb2dff6f6353e79
child 37456 2959c3e986e0840b383202c8e0785805f68d086f
push id514
push usergszorc@mozilla.com
push dateWed, 17 May 2017 01:32:21 +0000
py3: convert kwargs' keys to str using pycompat.strkwargs
mercurial/cmdutil.py
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -1491,16 +1491,17 @@ class changeset_templater(changeset_prin
         props.update(templatekw.keywords)
         props['templ'] = self.t
         props['ctx'] = ctx
         props['repo'] = self.repo
         props['ui'] = self.repo.ui
         props['index'] = next(self._counter)
         props['revcache'] = {'copies': copies}
         props['cache'] = self.cache
+        props = pycompat.strkwargs(props)
 
         # write header
         if self._parts['header']:
             h = templater.stringify(self.t(self._parts['header'], **props))
             if self.buffered:
                 self.header[ctx.rev()] = h
             else:
                 if self.lastheader != h: