Mercurial > hg
changeset 50915:d8c8a923ee9b
hgweb: use sysstr to get attribute on diff option
Attribute identifier should be `str` not `bytes`.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 01 Sep 2023 11:57:38 +0200 |
parents | e586a7eb380a |
children | 98b8836d0e82 |
files | mercurial/hgweb/webcommands.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py Thu Aug 31 01:19:49 2023 +0200 +++ b/mercurial/hgweb/webcommands.py Fri Sep 01 11:57:38 2023 +0200 @@ -1050,7 +1050,9 @@ } diffopts = webutil.difffeatureopts(web.req, web.repo.ui, b'annotate') - diffopts = {k: getattr(diffopts, k) for k in diffopts.defaults} + diffopts = { + k: getattr(diffopts, pycompat.sysstr(k)) for k in diffopts.defaults + } return web.sendtemplate( b'fileannotate',