mercurial/formatter.py
changeset 32897 799db2af824c
parent 32896 e14484e7f562
child 32948 12a0794fa2e3
--- a/mercurial/formatter.py	Sat Jun 17 15:05:11 2017 +0530
+++ b/mercurial/formatter.py	Sat Jun 17 15:29:26 2017 +0530
@@ -354,6 +354,7 @@
         self._cache = {}  # for templatekw/funcs to store reusable data
     def context(self, **ctxs):
         '''insert context objects to be used to render template keywords'''
+        ctxs = pycompat.byteskwargs(ctxs)
         assert all(k == 'ctx' for k in ctxs)
         self._item.update(ctxs)
     def _showitem(self):