Mercurial > hg
changeset 36431:ec43960b03e8
wireproto: use %d to encode an int, not a %s
Differential Revision: https://phab.mercurial-scm.org/D2449
author | Augie Fackler <augie@google.com> |
---|---|
date | Mon, 26 Feb 2018 00:50:57 -0500 |
parents | efebfa9b4cab |
children | 1ca4e86c7265 |
files | mercurial/wireproto.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/wireproto.py Mon Feb 26 00:50:35 2018 -0500 +++ b/mercurial/wireproto.py Mon Feb 26 00:50:57 2018 -0500 @@ -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):