hgweb: these strings should be sysstrs, not bytes
Differential Revision: https://phab.mercurial-scm.org/D3343
--- a/mercurial/hgweb/common.py Fri Apr 13 21:22:05 2018 -0400
+++ b/mercurial/hgweb/common.py Fri Apr 13 21:01:17 2018 -0400
@@ -133,7 +133,8 @@
def _statusmessage(code):
responses = httpserver.basehttprequesthandler.responses
- return responses.get(code, ('Error', 'Unknown error'))[0]
+ return pycompat.bytesurl(
+ responses.get(code, (r'Error', r'Unknown error'))[0])
def statusmessage(code, message=None):
return '%d %s' % (code, message or _statusmessage(code))