D4966: py3: byteify hgweberror.py

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Fri Oct 12 08:09:11 UTC 2018


indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  1. skip-blame just b'' prefixes

REPOSITORY
  rHG Mercurial

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
Cc: mercurial-devel


More information about the Mercurial-devel mailing list