Patchwork [7,of,7] py3: use %d instead of %s for integers

login
register
mail settings
Submitter Pulkit Goyal
Date May 3, 2017, 9:59 a.m.
Message ID <db9d9e27c49d6e9849a5.1493805566@pulkit-goyal>
Download mbox | patch
Permalink /patch/20402/
State Accepted
Headers show

Comments

Pulkit Goyal - May 3, 2017, 9:59 a.m.
# HG changeset patch
# User Pulkit Goyal <7895pulkit@gmail.com>
# Date 1492717398 -19800
#      Fri Apr 21 01:13:18 2017 +0530
# Node ID db9d9e27c49d6e9849a519ab45c9475bafefccb2
# Parent  07bd56e106d472c526d99caf3154c2d2727f8d79
py3: use %d instead of %s for integers

dispatch._runcatch() always returns an integer value.

Patch

diff -r 07bd56e106d4 -r db9d9e27c49d mercurial/dispatch.py
--- a/mercurial/dispatch.py	Fri Apr 28 00:52:12 2017 +0530
+++ b/mercurial/dispatch.py	Fri Apr 21 01:13:18 2017 +0530
@@ -183,7 +183,7 @@ 
         if req.ui.logblockedtimes:
             req.ui._blockedtimes['command_duration'] = duration * 1000
             req.ui.log('uiblocked', 'ui blocked ms', **req.ui._blockedtimes)
-        req.ui.log("commandfinish", "%s exited %s after %0.2f seconds\n",
+        req.ui.log("commandfinish", "%s exited %d after %0.2f seconds\n",
                    msg, ret or 0, duration)
         try:
             req._runexithandlers()