py3: handle keyword arguments correctly in dispatch.py
authorPulkit Goyal <7895pulkit@gmail.com>
Sun, 10 Dec 2017 04:46:13 +0530
changeset 35354 08f28f58f863
parent 35353 8384553b1684
child 35355 a119e97b6caf
py3: handle keyword arguments correctly in dispatch.py Differential Revision: https://phab.mercurial-scm.org/D1630
mercurial/dispatch.py
--- a/mercurial/dispatch.py	Sun Dec 10 04:45:56 2017 +0530
+++ b/mercurial/dispatch.py	Sun Dec 10 04:46:13 2017 +0530
@@ -200,7 +200,8 @@
         req.ui.flush()
         if req.ui.logblockedtimes:
             req.ui._blockedtimes['command_duration'] = duration * 1000
-            req.ui.log('uiblocked', 'ui blocked ms', **req.ui._blockedtimes)
+            req.ui.log('uiblocked', 'ui blocked ms',
+                       **pycompat.strkwargs(req.ui._blockedtimes))
         req.ui.log("commandfinish", "%s exited %d after %0.2f seconds\n",
                    msg, ret or 0, duration)
         try: