Patchwork D1798: py3: convert dict keys' to str before passing as kwargs

login
register
mail settings
Submitter phabricator
Date Jan. 10, 2018, 11:04 p.m.
Message ID <b751d8091b3685eb7831ef6cb0b5db16@localhost.localdomain>
Download mbox | patch
Permalink /patch/26663/
State Not Applicable
Headers show

Comments

phabricator - Jan. 10, 2018, 11:04 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGdadbf213a765: py3: convert dict keys&#039; to str before passing as kwargs (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1798?vs=4675&id=4781

REVISION DETAIL
  https://phab.mercurial-scm.org/D1798

AFFECTED FILES
  mercurial/templater.py

CHANGE DETAILS




To: pulkit, #hg-reviewers, durin42
Cc: mercurial-devel

Patch

diff --git a/mercurial/templater.py b/mercurial/templater.py
--- a/mercurial/templater.py
+++ b/mercurial/templater.py
@@ -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):