py3: handle keyword arguments correctly in hook.py
authorPulkit Goyal <7895pulkit@gmail.com>
Sun, 10 Dec 2017 04:46:50 +0530
changeset 35357 056a9c8813aa
parent 35356 7f410793c04d
child 35358 8549ca7fcde1
py3: handle keyword arguments correctly in hook.py Differential Revision: https://phab.mercurial-scm.org/D1633
mercurial/hook.py
--- a/mercurial/hook.py	Sun Dec 10 04:46:39 2017 +0530
+++ b/mercurial/hook.py	Sun Dec 10 04:46:50 2017 +0530
@@ -91,7 +91,7 @@
     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') %