Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/hgweb_mod.py @ 51785:99632adff795 stable
py3: fix type of some elements of __all__ lists
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Mon, 05 Aug 2024 20:47:17 +0200 |
parents | 18c8c18993f0 |
children | f4733654f144 |
comparison
equal
deleted
inserted
replaced
51756:7d9bd50afe3d | 51785:99632adff795 |
---|---|
462 res.setbodybytes(b'') | 462 res.setbodybytes(b'') |
463 return res.sendresponse() | 463 return res.sendresponse() |
464 | 464 |
465 res.headers[b'ETag'] = tag | 465 res.headers[b'ETag'] = tag |
466 | 466 |
467 if cmd not in webcommands.__all__: | 467 if pycompat.sysstr(cmd) not in webcommands.__all__: |
468 msg = b'no such method: %s' % cmd | 468 msg = b'no such method: %s' % cmd |
469 raise ErrorResponse(HTTP_BAD_REQUEST, msg) | 469 raise ErrorResponse(HTTP_BAD_REQUEST, msg) |
470 else: | 470 else: |
471 # Set some globals appropriate for web handlers. Commands can | 471 # Set some globals appropriate for web handlers. Commands can |
472 # override easily enough. | 472 # override easily enough. |