D3345: httppeer: fix debug prints to work on Python 3
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Mon Apr 16 23:21:38 UTC 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGe10b695b9c41: httppeer: fix debug prints to work on Python 3 (authored by durin42, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D3345?vs=8222&id=8339
REVISION DETAIL
https://phab.mercurial-scm.org/D3345
AFFECTED FILES
mercurial/httppeer.py
CHANGE DETAILS
diff --git a/mercurial/httppeer.py b/mercurial/httppeer.py
--- a/mercurial/httppeer.py
+++ b/mercurial/httppeer.py
@@ -273,7 +273,8 @@
and ui.configbool('devel', 'debug.peer-request')):
dbg = ui.debug
line = 'devel-peer-request: %s\n'
- dbg(line % '%s %s' % (req.get_method(), req.get_full_url()))
+ dbg(line % '%s %s' % (pycompat.bytesurl(req.get_method()),
+ pycompat.bytesurl(req.get_full_url())))
hgargssize = None
for header, value in sorted(req.header_items()):
@@ -310,7 +311,7 @@
raise IOError(None, inst)
finally:
if ui.configbool('devel', 'debug.peer-request'):
- dbg(line % ' finished in %.4f seconds (%s)'
+ dbg(line % ' finished in %.4f seconds (%d)'
% (util.timer() - start, res.code))
# Insert error handlers for common I/O failures.
To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list