changeset 35366:056a9c8813aa

py3: handle keyword arguments correctly in hook.py Differential Revision: https://phab.mercurial-scm.org/D1633
author Pulkit Goyal <7895pulkit@gmail.com>
date Sun, 10 Dec 2017 04:46:50 +0530
parents 7f410793c04d
children 8549ca7fcde1
files mercurial/hook.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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') %