py3: use pycompat.strkwargs() to convert kwargs keys to str before passing
authorPulkit Goyal <7895pulkit@gmail.com>
Sat, 17 Jun 2017 15:05:11 +0530
changeset 32896 e14484e7f562
parent 32895 05c213cd8ab8
child 32897 799db2af824c
py3: use pycompat.strkwargs() to convert kwargs keys to str before passing
mercurial/exchange.py
mercurial/formatter.py
--- a/mercurial/exchange.py	Sat Jun 17 14:53:25 2017 +0530
+++ b/mercurial/exchange.py	Sat Jun 17 15:05:11 2017 +0530
@@ -25,6 +25,7 @@
     obsolete,
     phases,
     pushkey,
+    pycompat,
     scmutil,
     sslutil,
     streamclone,
@@ -1386,7 +1387,7 @@
             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:
--- a/mercurial/formatter.py	Sat Jun 17 14:53:25 2017 +0530
+++ b/mercurial/formatter.py	Sat Jun 17 15:05:11 2017 +0530
@@ -371,6 +371,7 @@
             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))