# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2017-06-17 09:35:11 # Node ID e14484e7f562f7d4f4def471ea5beb71775e5e11 # Parent 05c213cd8ab8d54496d37dee5859c407465533f2 py3: use pycompat.strkwargs() to convert kwargs keys to str before passing diff --git a/mercurial/exchange.py b/mercurial/exchange.py --- a/mercurial/exchange.py +++ b/mercurial/exchange.py @@ -25,6 +25,7 @@ from . import ( obsolete, phases, pushkey, + pycompat, scmutil, sslutil, streamclone, @@ -1386,7 +1387,7 @@ def _pullbundle2(pullop): kwargs['obsmarkers'] = True pullop.stepsdone.add('obsmarkers') _pullbundle2extraprepare(pullop, kwargs) - bundle = pullop.remote.getbundle('pull', **kwargs) + bundle = pullop.remote.getbundle('pull', **pycompat.strkwargs(kwargs)) try: op = bundle2.processbundle(pullop.repo, bundle, pullop.gettransaction) except bundle2.AbortFromPart as exc: diff --git a/mercurial/formatter.py b/mercurial/formatter.py --- a/mercurial/formatter.py +++ b/mercurial/formatter.py @@ -371,6 +371,7 @@ class templateformatter(baseformatter): props['templ'] = self._t props['repo'] = props['ctx'].repo() props['revcache'] = {} + props = pycompat.strkwargs(props) g = self._t(self._tref, ui=self._ui, cache=self._cache, **props) self._out.write(templater.stringify(g))