diff -r 7d9bd50afe3d -r 99632adff795 mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py Thu Aug 01 11:14:58 2024 +0100 +++ b/mercurial/hgweb/hgweb_mod.py Mon Aug 05 20:47:17 2024 +0200 @@ -464,7 +464,7 @@ res.headers[b'ETag'] = tag - if cmd not in webcommands.__all__: + if pycompat.sysstr(cmd) not in webcommands.__all__: msg = b'no such method: %s' % cmd raise ErrorResponse(HTTP_BAD_REQUEST, msg) else: