Patchwork D1630: py3: handle keyword arguments correctly in dispatch.py

login
register
mail settings
Submitter phabricator
Date Dec. 10, 2017, 1:08 a.m.
Message ID <differential-rev-PHID-DREV-hytt3rg2v3rndefnrx7t-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/26147/
State Superseded
Headers show

Comments

phabricator - Dec. 10, 2017, 1:08 a.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D1630

AFFECTED FILES
  mercurial/dispatch.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py
--- a/mercurial/dispatch.py
+++ b/mercurial/dispatch.py
@@ -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: