hgweb: use sysstr to get attribute on diff option
Attribute identifier should be `str` not `bytes`.
--- 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',