Mercurial > public > mercurial-scm > hg-stable
diff mercurial/templater.py @ 35588:dadbf213a765
py3: convert dict keys' to str before passing as kwargs
We have pycompat.strkwargs() which converts the keys of a dict to str and
returns that.
Differential Revision: https://phab.mercurial-scm.org/D1798
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Fri, 29 Dec 2017 05:31:27 +0530 |
parents | 964510dcdc2a |
children | 077ee15b8493 |
line wrap: on
line diff
--- a/mercurial/templater.py Fri Dec 29 05:29:57 2017 +0530 +++ b/mercurial/templater.py Fri Dec 29 05:31:27 2017 +0530 @@ -397,7 +397,7 @@ # pair instead of **props props = context._resources.copy() props.update(mapping) - return v(**props) + return v(**pycompat.strkwargs(props)) return v def buildtemplate(exp, context):