From 30c3b22414df67715c07ed2214a77249aeaaa2f6 Mon Sep 17 00:00:00 2001 From: Pulkit Goyal <7895pulkit@gmail.com> Date: Sun, 10 Dec 2017 04:46:50 +0530 Subject: [PATCH] py3: handle keyword arguments correctly in hook.py Differential Revision: https://phab.mercurial-scm.org/D1633 --- mercurial/hook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mercurial/hook.py b/mercurial/hook.py index 818cfb3b8a..fb25475541 100644 --- a/mercurial/hook.py +++ b/mercurial/hook.py @@ -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') %