Mercurial > hg-stable
changeset 40155:0199fb5dde20
py3: byteify hgweberror.py
# skip-blame just b'' prefixes
Differential Revision: https://phab.mercurial-scm.org/D4966
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Thu, 11 Oct 2018 21:22:43 +0200 |
parents | fe11fc7e541f |
children | 5716d48b2a5b |
files | tests/hgweberror.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/hgweberror.py Thu Oct 11 21:18:58 2018 +0200 +++ b/tests/hgweberror.py Thu Oct 11 21:22:43 2018 +0200 @@ -10,7 +10,7 @@ '''Dummy web command that raises an uncaught Exception.''' # Simulate an error after partial response. - if 'partialresponse' in web.req.qsparams: + if b'partialresponse' in web.req.qsparams: web.res.status = b'200 Script output follows' web.res.headers[b'Content-Type'] = b'text/plain' web.res.setbodywillwrite() @@ -21,4 +21,4 @@ def extsetup(ui): setattr(webcommands, 'raiseerror', raiseerror) - webcommands.__all__.append('raiseerror') + webcommands.__all__.append(b'raiseerror')