Patchwork D2300: httppeer: use %d to format int

login
register
mail settings
Submitter phabricator
Date Feb. 18, 2018, 5:35 a.m.
Message ID <differential-rev-PHID-DREV-sj5u46tivrnbojedjhvy-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/28040/
State Superseded
Headers show

Comments

phabricator - Feb. 18, 2018, 5:35 a.m.
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/D2300

AFFECTED FILES
  mercurial/httppeer.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/httppeer.py b/mercurial/httppeer.py
--- a/mercurial/httppeer.py
+++ b/mercurial/httppeer.py
@@ -334,7 +334,7 @@ 
         req = self._requestbuilder(pycompat.strurl(cu), data, headers)
 
         if data is not None:
-            self.ui.debug("sending %s bytes\n" % size)
+            self.ui.debug("sending %d bytes\n" % size)
             req.add_unredirected_header('Content-Length', '%d' % size)
         try:
             resp = self._openurl(req)