From patchwork Mon Feb 26 06:02:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D2449: wireproto: use %d to encode an int, not a %s From: phabricator X-Patchwork-Id: 28382 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Mon, 26 Feb 2018 06:02:20 +0000 durin42 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/D2449 AFFECTED FILES mercurial/wireproto.py CHANGE DETAILS To: durin42, #hg-reviewers Cc: mercurial-devel diff --git a/mercurial/wireproto.py b/mercurial/wireproto.py --- a/mercurial/wireproto.py +++ b/mercurial/wireproto.py @@ -955,7 +955,7 @@ encoding.tolocal(old), new) or False output = output.getvalue() if output else '' - return bytesresponse('%s\n%s' % (int(r), output)) + return bytesresponse('%d\n%s' % (int(r), output)) @wireprotocommand('stream_out') def stream(repo, proto):