D4966: py3: byteify hgweberror.py
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Fri Oct 12 04:45:35 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG0199fb5dde20: py3: byteify hgweberror.py (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D4966?vs=11832&id=11851
REVISION DETAIL
https://phab.mercurial-scm.org/D4966
AFFECTED FILES
tests/hgweberror.py
CHANGE DETAILS
diff --git a/tests/hgweberror.py b/tests/hgweberror.py
--- a/tests/hgweberror.py
+++ b/tests/hgweberror.py
@@ -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')
To: indygreg, #hg-reviewers, pulkit
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list