##// END OF EJS Templates
py3: convert keys of kwargs back to bytes using pycompat.byteskwargs()
Pulkit Goyal -
r32897:799db2af default
parent child Browse files
Show More
@@ -14,6 +14,7 from mercurial import (
14 14 lock as lockmod,
15 15 merge,
16 16 node as nodemod,
17 pycompat,
17 18 registrar,
18 19 repair,
19 20 scmutil,
@@ -133,6 +134,7 def stripcmd(ui, repo, *revs, **opts):
133 134
134 135 Return 0 on success.
135 136 """
137 opts = pycompat.byteskwargs(opts)
136 138 backup = True
137 139 if opts.get('no_backup') or opts.get('nobackup'):
138 140 backup = False
@@ -354,6 +354,7 class templateformatter(baseformatter):
354 354 self._cache = {} # for templatekw/funcs to store reusable data
355 355 def context(self, **ctxs):
356 356 '''insert context objects to be used to render template keywords'''
357 ctxs = pycompat.byteskwargs(ctxs)
357 358 assert all(k == 'ctx' for k in ctxs)
358 359 self._item.update(ctxs)
359 360 def _showitem(self):
@@ -205,6 +205,7 def hook(ui, repo, htype, throw=False, *
205 205 return r
206 206
207 207 def runhooks(ui, repo, htype, hooks, throw=False, **args):
208 args = pycompat.byteskwargs(args)
208 209 res = {}
209 210 oldstdout = -1
210 211
General Comments 0
You need to be logged in to leave comments. Login now