# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2017-06-21 21:40:24 # Node ID 4e6dc34b5d7ae6286390bc4e18229658dd93bd84 # Parent f66be4caeaab4afbe61c548eff65796d3c7c9bd8 py3: convert kwargs keys' back to bytes using pycompat.byteskwargs() diff --git a/mercurial/exchange.py b/mercurial/exchange.py --- a/mercurial/exchange.py +++ b/mercurial/exchange.py @@ -1582,6 +1582,7 @@ def getbundlechunks(repo, source, heads= Returns an iterator over raw chunks (of varying sizes). """ + kwargs = pycompat.byteskwargs(kwargs) usebundle2 = bundle2requested(bundlecaps) # bundle10 case if not usebundle2: diff --git a/mercurial/templater.py b/mercurial/templater.py --- a/mercurial/templater.py +++ b/mercurial/templater.py @@ -1303,6 +1303,7 @@ class templater(object): return stringify(self('', **mapping)) def __call__(self, t, **mapping): + mapping = pycompat.byteskwargs(mapping) ttype = t in self.map and self.map[t][0] or 'default' if ttype not in self.ecache: try: