py3: handle keyword arguments correctly in hook.py

Differential Revision: https://phab.mercurial-scm.org/D1633
This commit is contained in:
Pulkit Goyal 2017-12-10 04:46:50 +05:30
parent 4a3c34a274
commit 30c3b22414

View File

@ -91,7 +91,7 @@ def _pythonhook(ui, repo, htype, hname, funcname, args, throw):
starttime = util.timer()
try:
r = obj(ui=ui, repo=repo, hooktype=htype, **args)
r = obj(ui=ui, repo=repo, hooktype=htype, **pycompat.strkwargs(args))
except Exception as exc:
if isinstance(exc, error.Abort):
ui.warn(_('error: %s hook failed: %s\n') %